A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Automatically insert in an Access Form



 
 
Thread Tools Display Modes
  #1  
Old August 27th, 2004, 11:27 AM
Peter L
external usenet poster
 
Posts: n/a
Default Automatically insert in an Access Form

"How do I get an access form to automaticall insert a County name when a town
is selected in the Town Name" box from a combo list
  #2  
Old August 27th, 2004, 12:22 PM
Jeff Boyce
external usenet poster
 
Posts: n/a
Default

Peter

Where I come from, "Aberdeen" and "Portland" are town names that exists in
more than one County. Are you sure you want to do this?

--
Good luck

Jeff Boyce
Access MVP

  #3  
Old September 1st, 2004, 10:05 AM
Peter L
external usenet poster
 
Posts: n/a
Default

Hi Jeff
Thanks for your thoughts. What I actually have is a list of Counties and a
list of County Codes which I want to automatically insert into an input form
when the county is selected. The County list is in a seperate table as are
the County codes. I thought a combo drop down list for the County selection
would be the answer with the code then appearing automatically in a seperate
field

Can you help

REgards

Peter

"Jeff Boyce" wrote:

Peter

Where I come from, "Aberdeen" and "Portland" are town names that exists in
more than one County. Are you sure you want to do this?

--
Good luck

Jeff Boyce
Access MVP


  #4  
Old September 1st, 2004, 12:36 PM
Jeff Boyce
external usenet poster
 
Posts: n/a
Default

Peter

If I'm understanding what you are trying to do, there's a more common way to
handle it.

You can create a combo box on a form that uses a query against a table other
than that connected to the form. If the form's underlying table has a field
to hold the ID/primary key value of the second table, that's considered a
"foreign key", and you can bind the combo box to the foreign key field.

If you build your combo box's query to include the ID field, and a
CountyName (two fields), then set the width of the first column (ID column)
to 0 in the combo box's property list, the combo box will display the
CountyName, even though it stores the ID value.

Or have I misunderstood?

--
Good luck

Jeff Boyce
Access MVP

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Edit PivotTable Form Manuel Using Forms 0 August 24th, 2004 11:29 AM
Access Calendar lost General Discussion 2 July 7th, 2004 04:58 AM
Passing value to modal child form in MS Access using VBA? Grahammer Using Forms 6 July 4th, 2004 11:53 PM
Linking Excel data through Access to use a Form as an Interface Laura Links and Linking 0 March 23rd, 2004 03:59 PM


All times are GMT +1. The time now is 06:38 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.