G
Guest
Hello,
I'm working on a query to assist my company's shipping department when
shipping packages by UPS. I've integrated the UPS WorldShip program on their
computer with my company's main database, which contains information on our
customers (this is a Pervasive 8.6 database). This way, my shipping
department can simply enter an order number for a given order, and the
database automatically detects the Customer ID from the order in the SO
Master table, then pulls up the appropriate address information, so this
information doesn't have to be entered manually when generating shipping
labels. But now, I have a new problem related to this. I now want our
shipping department to e-mail customers whenever an order ships by UPS
(provided we have an e-mail address for the customer). I got a query from my
supervisor, created in an older version of Access (we currently use Access
2000), that automatically looks at the "SO Master" and "Customer VAT" tables
in our database (linked through their respective CUSTID fields), and displays
any orders that are "status 3", or open (A copy of the SQL text for the query
will appear below). I want to take that query one step further and set it up
so that if it finds a "status 3" order that has an e-mail address listed in
the EMAIL1_81 field of the "Customer VAT" table. Can anyone offer any
suggestions on how to do this? Unfortunately, my Access skills are a bit
rusty, and I keep drawing blanks. I would greatly appreciate any help anyone
can offer.
Thanks in advance,
Michael
P.S. Here is the SQL text for the original query I mentioned earlier:
SELECT DISTINCTROW [SO Master].ORDNUM_27, [SO Master].STATUS_27, [SO
Master].CUSTPO_27, [SO Master].SHPVIA_27, [SO Master].NAME_27, [SO
Master].ADDR1_27, [SO Master].ADDR2_27, [SO Master].CITY_27, [SO
Master].STATE_27, [SO Master].ZIPCD_27, [SO Master].CNTRY_27, [SO
Master].PHONE_27, [SO Master].CNTCT_27, [Customer VAT].EMAIL1_81
FROM [Customer VAT] INNER JOIN [SO Master] ON [Customer VAT].CUSTID_81 = [SO
Master].CUSTID_27
WHERE (([SO Master].STATUS_27="3"));
I'm working on a query to assist my company's shipping department when
shipping packages by UPS. I've integrated the UPS WorldShip program on their
computer with my company's main database, which contains information on our
customers (this is a Pervasive 8.6 database). This way, my shipping
department can simply enter an order number for a given order, and the
database automatically detects the Customer ID from the order in the SO
Master table, then pulls up the appropriate address information, so this
information doesn't have to be entered manually when generating shipping
labels. But now, I have a new problem related to this. I now want our
shipping department to e-mail customers whenever an order ships by UPS
(provided we have an e-mail address for the customer). I got a query from my
supervisor, created in an older version of Access (we currently use Access
2000), that automatically looks at the "SO Master" and "Customer VAT" tables
in our database (linked through their respective CUSTID fields), and displays
any orders that are "status 3", or open (A copy of the SQL text for the query
will appear below). I want to take that query one step further and set it up
so that if it finds a "status 3" order that has an e-mail address listed in
the EMAIL1_81 field of the "Customer VAT" table. Can anyone offer any
suggestions on how to do this? Unfortunately, my Access skills are a bit
rusty, and I keep drawing blanks. I would greatly appreciate any help anyone
can offer.
Thanks in advance,
Michael
P.S. Here is the SQL text for the original query I mentioned earlier:
SELECT DISTINCTROW [SO Master].ORDNUM_27, [SO Master].STATUS_27, [SO
Master].CUSTPO_27, [SO Master].SHPVIA_27, [SO Master].NAME_27, [SO
Master].ADDR1_27, [SO Master].ADDR2_27, [SO Master].CITY_27, [SO
Master].STATE_27, [SO Master].ZIPCD_27, [SO Master].CNTRY_27, [SO
Master].PHONE_27, [SO Master].CNTCT_27, [Customer VAT].EMAIL1_81
FROM [Customer VAT] INNER JOIN [SO Master] ON [Customer VAT].CUSTID_81 = [SO
Master].CUSTID_27
WHERE (([SO Master].STATUS_27="3"));