R
rocketD
Hello,
Sorry if this question has been answered, but my searches have not
yielded the posts. Here is what I want to do: I have a form with a
combo box for City and one for State. I have two lookup tables:
lkpCity
cityID, City, stateID
lkpState
stateID, State
I have the combo box for City set up, and the one for State to depend
on the control for City.
These are necessary because we've got a lot of spelling errors. Very
often, however, the respondents whose data we are entering fail to
provide a city, but list their state. If this happens, I can't get a
list of states in the State combo box because City is null. I can
take off the dependency so that all states are listed, but I don't
want accidental entry errors like Albuquerque, NH instead of
Albuquerque, NM. Is there a specification I can add that will get
around this problem?
This is my code for the States box:
SELECT lkpStates.stateID, lkpStates.state FROM lkpStates INNER JOIN
lkpCities ON lkpStates.stateID=lkpCities.stateID WHERE
(((lkpCities.cityID) Like [forms].[fmNewParticipant].[City])) ORDER BY
lkpStates.state;
Thanks,
Dara
Sorry if this question has been answered, but my searches have not
yielded the posts. Here is what I want to do: I have a form with a
combo box for City and one for State. I have two lookup tables:
lkpCity
cityID, City, stateID
lkpState
stateID, State
I have the combo box for City set up, and the one for State to depend
on the control for City.
These are necessary because we've got a lot of spelling errors. Very
often, however, the respondents whose data we are entering fail to
provide a city, but list their state. If this happens, I can't get a
list of states in the State combo box because City is null. I can
take off the dependency so that all states are listed, but I don't
want accidental entry errors like Albuquerque, NH instead of
Albuquerque, NM. Is there a specification I can add that will get
around this problem?
This is my code for the States box:
SELECT lkpStates.stateID, lkpStates.state FROM lkpStates INNER JOIN
lkpCities ON lkpStates.stateID=lkpCities.stateID WHERE
(((lkpCities.cityID) Like [forms].[fmNewParticipant].[City])) ORDER BY
lkpStates.state;
Thanks,
Dara