tim bailey
VBA Beginner
- Local time
- Today, 11:24
- Joined
- Jan 28, 2009
- Messages
- 6
Hi,
Sorry to bother you guys with such a newbie question but I have a problem where i need to use a query in VBA to derive some values for use in another query.
What I am trying to do is this:
I want to open a form that checks the values of the user input (company name)against the database. Then i want to take those values into a query to open the form where company id = company id then from a combo box select the postcode for the site to be ammended.
The two tables I am working on are:
tbl_customers
company_id
company_name
and
tbl_customers_sites
company_id
postcode
other fields
I can open the recordset for the check against the database but I am really struggling to run and use the output of the query. This is becoming a time issue for me and really would appreciatte the help
thankyou
tim
Sorry to bother you guys with such a newbie question but I have a problem where i need to use a query in VBA to derive some values for use in another query.
What I am trying to do is this:
I want to open a form that checks the values of the user input (company name)against the database. Then i want to take those values into a query to open the form where company id = company id then from a combo box select the postcode for the site to be ammended.
The two tables I am working on are:
tbl_customers
company_id
company_name
and
tbl_customers_sites
company_id
postcode
other fields
I can open the recordset for the check against the database but I am really struggling to run and use the output of the query. This is becoming a time issue for me and really would appreciatte the help
thankyou
tim