Hi !
You can do that with the addin but in an indirect kind of way.
I would:
(1) Set up the SQL to import all the customers information - if they have an order
Query would be something like this (use inner joins as need to to link the tables)
| Code: |
Select customers.customers_firstname, customers.customers_lastname,
orders.customers_id, dublinguitars.orders.orders_id
From customers Inner Join
orders On orders.customers_id = customers.customers_id
Where orders.orders_id = 1
|
(2) Embed the query into a worksheet by using the "Embed" button on the main form of the addin
So now you will have all the relevent records. With the embed feature you will be able to use right click and refresh to get the data uptodate..
(3) Use excel's filtering tools to filter down the database based on the order number. So you could use the Autofilter feature where you can pick the order number in the dropdown. Or you could use the advanced filter where you enter it into a cell (you can get a bit more control with the advanced filter).
Good idea might be to write an excel macro to refresh the data, read the order id from the cell and then paste the fields into the purchase order. Then you could just enter the order number in a cell and hit a button to do it..
Hope that helps.. Thanks, Al