I am using the ADO Data Control to retrieve information about a retail catalog from a database. When the user looks up a record, the details of the record are shown along with the matching image. In my HTML/ASP version of this project I specify the path in an image tag, and then insert the style number for the image from the recordset, and then add .JPG on the end. It looks like this...
<IMG SRC=/IMAGES/'<%=RecordSet.Fields("STYLE"
%>_D.JPG'>
...I'm basically dropping the style number in the middle of the directory and the file extension. When the loaded style changes, the image changes.
I need to duplicate this in VB6. I have the form created, the ADO Data Control working properly and pulling data from the database. I just can't seem to build the right line of code for the Picture property to get a dynamic image.
Any suggestions? Thanks!
Jim
<IMG SRC=/IMAGES/'<%=RecordSet.Fields("STYLE"
...I'm basically dropping the style number in the middle of the directory and the file extension. When the loaded style changes, the image changes.
I need to duplicate this in VB6. I have the form created, the ADO Data Control working properly and pulling data from the database. I just can't seem to build the right line of code for the Picture property to get a dynamic image.
Any suggestions? Thanks!
Jim