C
cableguy47905 via AccessMonster.com
There are many postings dealing with append queries and they have helped a
great deal with the other one I was working on, but this one is different.
I am wondering if it is possible to run an append query from code with two
different sources for the data. There will be three values written to the
table, but two are coming from a form and one is coming from a query.
Background:
The table is an associative entity with three values all set at the primary
key and duplicates allowed.
ContactID
CompanyID
LocationID
All three values are on the form, and would be used straight from the form
for an append query, but if a check box is checked for all locations, then I
want it to run a query on the TBL_CompanyContractLocation with the criteria
being the company ID. The only data out of that table that I want is the
locationID.
This means that if the chkAllLocs is checked then I would use the ContactID
and CompanyID from the form, and then the multiple LocationID's from the
query.
Is this possible with my train of thought right now?
great deal with the other one I was working on, but this one is different.
I am wondering if it is possible to run an append query from code with two
different sources for the data. There will be three values written to the
table, but two are coming from a form and one is coming from a query.
Background:
The table is an associative entity with three values all set at the primary
key and duplicates allowed.
ContactID
CompanyID
LocationID
All three values are on the form, and would be used straight from the form
for an append query, but if a check box is checked for all locations, then I
want it to run a query on the TBL_CompanyContractLocation with the criteria
being the company ID. The only data out of that table that I want is the
locationID.
This means that if the chkAllLocs is checked then I would use the ContactID
and CompanyID from the form, and then the multiple LocationID's from the
query.
Is this possible with my train of thought right now?