My apologies if this is answered elsewhere.
Access 2007
Tables: tblNewspapers, tblConventionReg
I have a form for entering/editing new registrations for a newspaper convention. All of the relevant information for each regional newspapers is in tblNewspapers, and all of the registrations are going into the tblConventionReg.
Since there are multiple registrants from each newspaper, I have a combobox on the form that executes a query and retrieves the newspaperID, newspapername, mailingaddress1, mailingaddress1, city, state, zip, email, fax, phone
The information for each individual is entered manually.
The problem I am having is filling each of the newspaper specific fields with data after selecting the newspaper name from the combobox and then adding that data to the record in the tblConventionReg.
For example, if I put:
=[NewspaperSelect].[Column](4) NewspaperSelect is the name of the combobox and the data retrieved from a sql query in column 4 is the city
into the text field for city, the appropriate data shows up just fine no problem. It is also reflected in the datasheet view for the form. However, the data does NOT show up in the table. If I change the control source for the field to "City" (the name of the appropriate column in the table) then it will only show data that I enter in manually.
What I need to know, is how I get data to populate the field on the form after selecting a newspaper from the combobox (again, this executes a query and retrieves all the data I need and lists the newspaper name), and then pass that through to the table.
Ideas? Suggestions?
Access 2007
Tables: tblNewspapers, tblConventionReg
I have a form for entering/editing new registrations for a newspaper convention. All of the relevant information for each regional newspapers is in tblNewspapers, and all of the registrations are going into the tblConventionReg.
Since there are multiple registrants from each newspaper, I have a combobox on the form that executes a query and retrieves the newspaperID, newspapername, mailingaddress1, mailingaddress1, city, state, zip, email, fax, phone
The information for each individual is entered manually.
The problem I am having is filling each of the newspaper specific fields with data after selecting the newspaper name from the combobox and then adding that data to the record in the tblConventionReg.
For example, if I put:
=[NewspaperSelect].[Column](4) NewspaperSelect is the name of the combobox and the data retrieved from a sql query in column 4 is the city
into the text field for city, the appropriate data shows up just fine no problem. It is also reflected in the datasheet view for the form. However, the data does NOT show up in the table. If I change the control source for the field to "City" (the name of the appropriate column in the table) then it will only show data that I enter in manually.
What I need to know, is how I get data to populate the field on the form after selecting a newspaper from the combobox (again, this executes a query and retrieves all the data I need and lists the newspaper name), and then pass that through to the table.
Ideas? Suggestions?