Re: Visitor data input form

From: fredg (fgutkind_at_example.invalid)
Date: 01/17/05


Date: Mon, 17 Jan 2005 18:42:30 GMT

On Mon, 17 Jan 2005 09:31:02 -0800, a_schriver wrote:

> I have a geodatabase with city, state, and coordinate info. I want to be able
> to enter the state on the input form and have the cities in that state
> selected to be available in the city field. Example: if I want to enter
> information for a visitor from Paris, TN, I would enter TN in the state field
> and I would have a dropdown in the city field that would only show cities in
> TN to pick from where I could select Paris. Now I enter TN and enter Paris
> but I get the geodata from the first city named Paris in the database which
> could be Paris, TX not Paris, TN.
> Or I could set the form up the other way. Enter the city first and then have
> only the states with a city of that name show up in the dropdown for state
> field.
> I just don't know enough about forms.

Set the List box RowsourceType property to Table/Query.
Leave the RowSource property of the List Box blank.
Code the [State] AfterUpdate event:

Me!ListBoxName.RowSource = "Select [TableName].[City] from [TableName]
where TableName.State = '" & Me![State] & "' Order By [City] ;"

-- 
Fred
Please only reply to this newsgroup.
I do not reply to personal email.


Relevant Pages

  • Re: Cities in Fantastic Fiction (Repressentative and otherwise)
    ... me to be similar to the photos I've seen of mostly Midlands cities. ... > of any British city and I suspect there's a fair slice of fin-de-siecle ... I always connected the quietly desperate poets of Viriconium with Paris, ... ;) in fantastic fiction, and a sort of City of God? ...
    (rec.arts.sf.written)
  • Visitor data input form
    ... I have a geodatabase with city, state, and coordinate info. ... to enter the state on the input form and have the cities in that state ... selected to be available in the city field. ... TN to pick from where I could select Paris. ...
    (microsoft.public.access.forms)
  • Data type mismatch in criteria expression error in Count query
    ... where I need to count the number of cities which meet ... particular city names. ... criteria, but all I get is an error saying 'Data type mismatch in criteria ... I'm not sure what I'm doing wrong as the City field is text and ...
    (microsoft.public.access.queries)
  • Data type mismatch in criteria expression error in Count query
    ... where I need to count the number of cities which meet ... particular city names. ... criteria, but all I get is an error saying 'Data type mismatch in criteria ... I'm not sure what I'm doing wrong as the City field is text and ...
    (microsoft.public.access.queries)
  • Re: Lots of questions about Paris
    ... Paris is a wonderful city and I'm sure you'll have a great time - if I ... area of Paris - cab, ... you'll need to buy your bus ticket from one of the ...
    (rec.travel.europe)