I have 2 cascading combo boxes . The first lists the 50 states. The second lists the cities and zipcodes for whichever city is chosen.
The query for my first combobox(cities) has 2 fields: stateid and state
The query for my second combobox(cities) has 4 fields: CityID,city, zip, stateid.
I have the following criteria in my cities query in the stateid field:
[Forms]![frm_clientinformation]![cboRegions]. This was taken from a sample db here on the forum which I modified for my db. Thanks, Miles. The samples here are great.
This works great in the clientinformation form. My problem is I have other forms I want to use these cascading comboboxes in. Is there a way to write a generic or universal criteria, perhaps with a me statement? I'm using copy and paste so the combobox names are the same in every form. The problem is the form name in the criteria. Or can the criteria be moved to a property setting on each form? Any help would be greatly appreciated.
The query for my first combobox(cities) has 2 fields: stateid and state
The query for my second combobox(cities) has 4 fields: CityID,city, zip, stateid.
I have the following criteria in my cities query in the stateid field:
[Forms]![frm_clientinformation]![cboRegions]. This was taken from a sample db here on the forum which I modified for my db. Thanks, Miles. The samples here are great.
This works great in the clientinformation form. My problem is I have other forms I want to use these cascading comboboxes in. Is there a way to write a generic or universal criteria, perhaps with a me statement? I'm using copy and paste so the combobox names are the same in every form. The problem is the form name in the criteria. Or can the criteria be moved to a property setting on each form? Any help would be greatly appreciated.