A
AMH
Hi there,
I have a table that has stored images. I want to link those images to
a form using a bound object frame, on update of a combo box (eg. If I
pick "1" from the combo box, I want the image for record 1 to display).
The table I'm pulling the images from is not the source table for the
form. I am trying to use the AfterUpdate() method to do this. Problem
is, the image isn't displaying! Here is my code:
____________________________________
Private Sub dg_class_AfterUpdate()
On Error Resume Next
Set dg_class_pic.Object = " SELECT dg_classes.image FROM dg_classes
" & _
" WHERE (dg_classes.class =
'Me!dg_class.value' ); "
End Sub
_________________________________________
Any ideas on where my code has gone wrong? Or is this attempt
impossible?
Appreciate any help, Thanks. AMH
I have a table that has stored images. I want to link those images to
a form using a bound object frame, on update of a combo box (eg. If I
pick "1" from the combo box, I want the image for record 1 to display).
The table I'm pulling the images from is not the source table for the
form. I am trying to use the AfterUpdate() method to do this. Problem
is, the image isn't displaying! Here is my code:
____________________________________
Private Sub dg_class_AfterUpdate()
On Error Resume Next
Set dg_class_pic.Object = " SELECT dg_classes.image FROM dg_classes
" & _
" WHERE (dg_classes.class =
'Me!dg_class.value' ); "
End Sub
_________________________________________
Any ideas on where my code has gone wrong? Or is this attempt
impossible?
Appreciate any help, Thanks. AMH