Load Picture From Access DB in VB6.0

How to Load Picture From Access DB IN VB6.0

Hello and Welcome friends in this post i will teach you How to Load Picture From Access DB
Follow this steps
Step 1 - First you design a form as you wish to like this Screen Shot.
              in this form when user enter student enroll no then if picture added in db then display it.

               
Load Picture From Database in VB6.0


Step 2 - Create a module and paste this code and save it with any name.


Step 3- Call Function LoadPictureFromDB and Change declaration parameters




             A - First Parameters is Picture Control where you want to Display the picture from db
             B - Second is Adodb Recordset Variable that you defined.
             C - Third is Field Name that you created in database table. 
Step 4- You can just call above function any event like this


Post a Comment

0 Comments