G
Guest
I have a form in edit mode with two combo boxes, one is RoomNamecombo and the
other is SiteNamecombo.
A site can have many rooms, so when selecting from SiteNamecombo, I want the
RoomNamecombo box to refresh to the corrent selection of rooms for that site.
The code I have in the RoomNamecombo row source is:
SELECT [tblRoom].[RoomName] FROM [tblRoom] WHERE [tblRoom].[SiteName]
=Forms![frmEquipmentAssessmentEdit]!SiteNamecombo
I also have the following code:
Private Sub SiteNamecombo_AfterUpdate()
Me.RoomNamecombo = Null
Me.RoomNamecombo.Requery
End Sub
This all works fine in the form that is in Data Entry mode but does not seem
to work for the form in Edit mode.
other is SiteNamecombo.
A site can have many rooms, so when selecting from SiteNamecombo, I want the
RoomNamecombo box to refresh to the corrent selection of rooms for that site.
The code I have in the RoomNamecombo row source is:
SELECT [tblRoom].[RoomName] FROM [tblRoom] WHERE [tblRoom].[SiteName]
=Forms![frmEquipmentAssessmentEdit]!SiteNamecombo
I also have the following code:
Private Sub SiteNamecombo_AfterUpdate()
Me.RoomNamecombo = Null
Me.RoomNamecombo.Requery
End Sub
This all works fine in the form that is in Data Entry mode but does not seem
to work for the form in Edit mode.