V
Vic
First thanks to everyone for your input. I'm not a programmer so this has
been rather difficult.
Here's my problem I'm still tangling with.
I have a demographics form. On this form there are two fields that I'm
primarily trying to deal with.
1. State field. This pulls up all the appropriate state abreviations from
a table called tbl_States.
2. County field. This pulls up all the appropriate counties from a table
called tbl_counties.
For now we have indicated that state code in the county description when the
user goes to enter county information. i.e. OH-Sandusky, PA-Menter as an
example.
What we're trying to do is restrict the county list to only the state that
is appropriate. So let's say the state is OH then when a user goes to either
enter or edit the record information for the county they would only get a
list of all the counties in OH.
The fields in the county table are CntyCode which is the data that we want
to store, CntyDesc which is the name of the county that we want the user to
see and CntyState which is basically an assigned state to each county.
The field in the form is setup as bound column 1 and number of columns is 3.
The first column is set to 0";1.8".5"
I have tried this code but I just can't seem to get things to work right for
me. So I have no idea what I'm screwing up.
PrspDemoCounty.RowSource = "Select CntyCode, CntyDesc, CntyState from
tbl_Counties Where PrspDemoState = " '" & Me!CntyState & "';"
Keeping it short I just want the user to see the county applicable for the
stated recorded whether it's a new entry or they are editing the record. I
have tried placing this code in the after update event in the state field and
also in the after update event in the county field. I just can't get it
together.
Thanks all for the help.
been rather difficult.
Here's my problem I'm still tangling with.
I have a demographics form. On this form there are two fields that I'm
primarily trying to deal with.
1. State field. This pulls up all the appropriate state abreviations from
a table called tbl_States.
2. County field. This pulls up all the appropriate counties from a table
called tbl_counties.
For now we have indicated that state code in the county description when the
user goes to enter county information. i.e. OH-Sandusky, PA-Menter as an
example.
What we're trying to do is restrict the county list to only the state that
is appropriate. So let's say the state is OH then when a user goes to either
enter or edit the record information for the county they would only get a
list of all the counties in OH.
The fields in the county table are CntyCode which is the data that we want
to store, CntyDesc which is the name of the county that we want the user to
see and CntyState which is basically an assigned state to each county.
The field in the form is setup as bound column 1 and number of columns is 3.
The first column is set to 0";1.8".5"
I have tried this code but I just can't seem to get things to work right for
me. So I have no idea what I'm screwing up.
PrspDemoCounty.RowSource = "Select CntyCode, CntyDesc, CntyState from
tbl_Counties Where PrspDemoState = " '" & Me!CntyState & "';"
Keeping it short I just want the user to see the county applicable for the
stated recorded whether it's a new entry or they are editing the record. I
have tried placing this code in the after update event in the state field and
also in the after update event in the county field. I just can't get it
together.
Thanks all for the help.