Carnegie23

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am an Access novice and am having trouble creating a specific filter. In form view, how can I select a specific building in one combo box and have the next combo box , "aparments", show only those apartments in the selected building?
 
Filter by selection said:
I am an Access novice and am having trouble creating a specific filter.
In form view, how can I select a specific building in one combo box and have
the next combo box , "aparments", show only those apartments in the selected
building?

Code the AfterUpdate event of the first combo something like this:

Sub cboBuilding_AfterUpdate()

Me.cboApartment.Rowsource = "Select ApartmentNumber From tblApartments Where
BuildingNumber =" & Me.cboBuilding

End Sub

Of course, you'll need to substitute your field and control names.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
 
Back
Top