hi all,
i have stored photo's path in my sql2000 and now in vb i have created a picture box. i want to retrieve the photo in this.
here is my sample code.
(assuming at present my database contains only one record)
dim con as new adodb.connectio n
dim rs as new adodb.recordset
con.connections tring= "-----"
rs.open "select * from foto",con,2,3
command_click()
picture1= loadpicture('rs (0)')
the error says cannot find file "C:\....." whatever path i gave in my db.
cd u ppl help me solve this.
i have stored photo's path in my sql2000 and now in vb i have created a picture box. i want to retrieve the photo in this.
here is my sample code.
(assuming at present my database contains only one record)
dim con as new adodb.connectio n
dim rs as new adodb.recordset
con.connections tring= "-----"
rs.open "select * from foto",con,2,3
command_click()
picture1= loadpicture('rs (0)')
the error says cannot find file "C:\....." whatever path i gave in my db.
cd u ppl help me solve this.
Comment