Hi, is there a way of showing a picture based on the content of a combo box? Answer - Yes. The problem is that the picture is stored as a field in my "tblFileStatus" table (the status is either IN or OUT and the picture just displays this). This information is then displayed in a combo box in a form which has the source data come from a table other than tblStatus.
I have an afterupdate event procedure in the combo box as such:
Private Sub StatusID_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Picture] = " & Str(Nz(Me![tblFileStatus], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
1. how do I configure the source data in the bound object to link it to the picture?
2. is the above sub correct?
Any ideas???
Thanks in advance.
Renoir
I have an afterupdate event procedure in the combo box as such:
Private Sub StatusID_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Picture] = " & Str(Nz(Me![tblFileStatus], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
1. how do I configure the source data in the bound object to link it to the picture?
2. is the above sub correct?
Any ideas???
Thanks in advance.
Renoir