bill crumpton
Registered User.
- Local time
- Today, 19:02
- Joined
- Apr 20, 2000
- Messages
- 105
I have a form that shows the results of a parameter query. The properties set to Continuous. One of the result fields is an ole image box that shows the picture of a person. I have the following code in the 'On Current' property of the Form:
Private Sub Form_Current()
On Error Resume Next
Me![imageframe].Picture = Me![imagepath]
Me![imageframe].Requery
End Sub
When the results of the continuous form appear, the same photo for every person is the same as the first photo in the form, until I click on the recod then the picture will change to the proper picture.
For example, If I type in the name "Smith" in the parameter query 10 different "Smiths" appear as the result in the Form. Every Smith has the same picture as the very first Smith on the Form even though they are different people. BUT when I click on the record selector on the second record the picture will change.
How do I get all the correct pictures to show in all the records on the continuous forms without selecting the records? Thanks for your help.
BAC
Private Sub Form_Current()
On Error Resume Next
Me![imageframe].Picture = Me![imagepath]
Me![imageframe].Requery
End Sub
When the results of the continuous form appear, the same photo for every person is the same as the first photo in the form, until I click on the recod then the picture will change to the proper picture.
For example, If I type in the name "Smith" in the parameter query 10 different "Smiths" appear as the result in the Form. Every Smith has the same picture as the very first Smith on the Form even though they are different people. BUT when I click on the record selector on the second record the picture will change.
How do I get all the correct pictures to show in all the records on the continuous forms without selecting the records? Thanks for your help.
BAC