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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |