Hi Guys. Can anyone solve this conundrum?
The problem I am having is this:
I have a form with a subform
The subform has two Combo boxes that depend on each other. Box1 has the main information (in this case its called the provider), Box2 displays info based on the option chosen in Box 1(box 2 in this case is the Venue belonging to the provider)
When the subform is opened on its own it work beautifully but when its opened as part of the main form Box 2 keeps asking for a parameter value.
Help!
Here is some code I am using:
Box1
**Combo Box Name: Provider
**ROWSOURCE
SELECT tbl_eProvider.eProviderID, tbl_eProvider.eProvider_name FROM tbl_eProvider;
**After update event procedures:
Private Sub provider_AfterUpdate()
Me.venue.Requery
End Sub
Box2
**Combo Box Name: venue
**ROWSOURCE
SELECT tbl_Venues.Venue_Title FROM tbl_Venues WHERE (((tbl_Venues.eProviderID)=Forms!frm_Event_subform!Provider));
Hopefully someone can help.
Peter
The problem I am having is this:
I have a form with a subform
The subform has two Combo boxes that depend on each other. Box1 has the main information (in this case its called the provider), Box2 displays info based on the option chosen in Box 1(box 2 in this case is the Venue belonging to the provider)
When the subform is opened on its own it work beautifully but when its opened as part of the main form Box 2 keeps asking for a parameter value.
Help!
Here is some code I am using:
Box1
**Combo Box Name: Provider
**ROWSOURCE
SELECT tbl_eProvider.eProviderID, tbl_eProvider.eProvider_name FROM tbl_eProvider;
**After update event procedures:
Private Sub provider_AfterUpdate()
Me.venue.Requery
End Sub
Box2
**Combo Box Name: venue
**ROWSOURCE
SELECT tbl_Venues.Venue_Title FROM tbl_Venues WHERE (((tbl_Venues.eProviderID)=Forms!frm_Event_subform!Provider));
Hopefully someone can help.
Peter