Hi experts:
When I design the input form for customers' data, I divide the address into three parts: City, Borough, and RestAddress, where City and Borough are of the listbox type. I have two tables as follows. I would like to do the following. For example, if I choose "New York City" in the City listbox, then only the corresponding boroughs (Manhattan, Bronx, and Queens) of New York City will show up in the Borough listbox.
In the design view, I would like to try the SQL statement in the "Row Source" of Borough.Borough Name as follows, in which "?" means the content of the CityID field already inputted. So what is "?" ?
SELECT * from Borough WHERE CityID = ?
TABLES:
City:
ID CityName
1 New York City
2 Boston
...
Borough:
ID CityID BoroughName
1 1 Manhattan
2 1 Bronx
3 1 Queens
4 2 Holly Woods
5 2 Santa Monica
6 2 Pasadena
...
When I design the input form for customers' data, I divide the address into three parts: City, Borough, and RestAddress, where City and Borough are of the listbox type. I have two tables as follows. I would like to do the following. For example, if I choose "New York City" in the City listbox, then only the corresponding boroughs (Manhattan, Bronx, and Queens) of New York City will show up in the Borough listbox.
In the design view, I would like to try the SQL statement in the "Row Source" of Borough.Borough Name as follows, in which "?" means the content of the CityID field already inputted. So what is "?" ?
SELECT * from Borough WHERE CityID = ?
TABLES:
City:
ID CityName
1 New York City
2 Boston
...
Borough:
ID CityID BoroughName
1 1 Manhattan
2 1 Bronx
3 1 Queens
4 2 Holly Woods
5 2 Santa Monica
6 2 Pasadena
...
Comment