Rose
Nov 29th, 1999, 12:11 AM
I have an image and a text on the form. I created a project that generates random pictures. Here is the below code in the form --
Private Sub Form_Load()
Randomize Timer
imgSign.Picture = LoadPicture(App.Path & "\sign" & Int(Rnd * 10) + 1 & ".jpg")
End Sub
But my question is how to select a random description(perhaps from a file), and it must match with the image.
i.e. the image randomly displays "cat, and the text randomly shows the definition of "cat" on the form .... it has to be matched with an image "cat"
I created the database in Access 97, and I got the code to define Word and Picture and Text
field name data type
word text
picture ole object
description memo
I added the data. And, the result are shown below
word picture description
cat picture an animal....
dog picture an animal....
car picture an automobile....
etc etc etc.......
But, I have the code, and I ran the program.. it says, "Unable to bind to field or DataMember. "Picture". I used the Data Form Wizard to create a form using the Employeers from the NWind.mdb database --- includes the pictures. When I ran that frmEmployeers, I got the same error!! I did not understand what does it mean by "Unable to bind....!" Can anyone tell me??? Thanks in advance.
ROSE
I am new to this BB. How do I respond back to someone's reply. Thank u.
Private Sub Form_Load()
Randomize Timer
imgSign.Picture = LoadPicture(App.Path & "\sign" & Int(Rnd * 10) + 1 & ".jpg")
End Sub
But my question is how to select a random description(perhaps from a file), and it must match with the image.
i.e. the image randomly displays "cat, and the text randomly shows the definition of "cat" on the form .... it has to be matched with an image "cat"
I created the database in Access 97, and I got the code to define Word and Picture and Text
field name data type
word text
picture ole object
description memo
I added the data. And, the result are shown below
word picture description
cat picture an animal....
dog picture an animal....
car picture an automobile....
etc etc etc.......
But, I have the code, and I ran the program.. it says, "Unable to bind to field or DataMember. "Picture". I used the Data Form Wizard to create a form using the Employeers from the NWind.mdb database --- includes the pictures. When I ran that frmEmployeers, I got the same error!! I did not understand what does it mean by "Unable to bind....!" Can anyone tell me??? Thanks in advance.
ROSE
I am new to this BB. How do I respond back to someone's reply. Thank u.