H
H0MELY
Greetings again, thank you all for looking...here is the situation...
I am using a make table query to pull data from a linked table through an
ODBC connection. I have a second table stored within the tool called vendors
that has a list of the vendors as well as their internal contact/vendor
manager. What happens is the query goes out and grabs all of the data from
the linked table within the specified time frame, matches the internal
contact (if there is one) with a right join and then creates a table which I
use for future queries.
So I had to ask myself...how do I handle linked data that comes in and the
vendor isn't on my vendor table?
After the data is copied to the local tool I do a query that looks for null
contacts. I created a form with 2 combo boxes, the first displays all of the
vendors without a contact listed (where the contact is null) the second combo
box is a list of all of the potential contacts. There is a command button
that runs a macro with 2 queries in it...teh first is an update query that
will update the contact in the table with copied data. The second does an
append to the contact table for future use.
Here is where I need help (sorry this took so long). The above process is
actually only part of the full process. After pulling the data comes the
verification and after that there is a review...what I would like is if the
query looking for null values in the contact field comes back with an empty
record set (meaning all of the vendors had contacts) I would like to skip the
validation form from appearing and go straight to the review.
I am thiking that I have to convert my macro to code and add an if statement
if the recordset is eof...but honestly I am not certain of the best way to do
it or if I am even on the right track.
Any suggestions about any step of the process is more than welcome. The
goal is to have a tool that other users can use without me having to go in
and make changes behind the scenes constantly. Thank you again for all of
your help.
-John
I am using a make table query to pull data from a linked table through an
ODBC connection. I have a second table stored within the tool called vendors
that has a list of the vendors as well as their internal contact/vendor
manager. What happens is the query goes out and grabs all of the data from
the linked table within the specified time frame, matches the internal
contact (if there is one) with a right join and then creates a table which I
use for future queries.
So I had to ask myself...how do I handle linked data that comes in and the
vendor isn't on my vendor table?
After the data is copied to the local tool I do a query that looks for null
contacts. I created a form with 2 combo boxes, the first displays all of the
vendors without a contact listed (where the contact is null) the second combo
box is a list of all of the potential contacts. There is a command button
that runs a macro with 2 queries in it...teh first is an update query that
will update the contact in the table with copied data. The second does an
append to the contact table for future use.
Here is where I need help (sorry this took so long). The above process is
actually only part of the full process. After pulling the data comes the
verification and after that there is a review...what I would like is if the
query looking for null values in the contact field comes back with an empty
record set (meaning all of the vendors had contacts) I would like to skip the
validation form from appearing and go straight to the review.
I am thiking that I have to convert my macro to code and add an if statement
if the recordset is eof...but honestly I am not certain of the best way to do
it or if I am even on the right track.
Any suggestions about any step of the process is more than welcome. The
goal is to have a tool that other users can use without me having to go in
and make changes behind the scenes constantly. Thank you again for all of
your help.
-John