B
brownti via AccessMonster.com
I have a main form with addresses on it and I am using a combo box to search
through the addresses, this works fine it is set up as follows.
Private Sub Combo75_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Address] = '" & Me![Combo75] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Me.Combo75 = ""
Combo75.Requery
End Subworks great, I have it set up as follows
Next I have a subform with RoomNames on it for each of the addresses, I want
to be able to search the RoomNames with a combo box also. I have triied to
set it up in the same manor, but I can't seem to get it to work. When I have
it set up as follows the combo box lets me pick a record but nothing happens.
Private Sub Combo34_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[RoomName] = '" & Me![Combo34] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Me.Combo34 = ""
Combo34.Requery
End Sub
Any suggestions would be great.
through the addresses, this works fine it is set up as follows.
Private Sub Combo75_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Address] = '" & Me![Combo75] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Me.Combo75 = ""
Combo75.Requery
End Subworks great, I have it set up as follows
Next I have a subform with RoomNames on it for each of the addresses, I want
to be able to search the RoomNames with a combo box also. I have triied to
set it up in the same manor, but I can't seem to get it to work. When I have
it set up as follows the combo box lets me pick a record but nothing happens.
Private Sub Combo34_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[RoomName] = '" & Me![Combo34] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Me.Combo34 = ""
Combo34.Requery
End Sub
Any suggestions would be great.