Excel query Access DB

H

Hans

I am using Excel to write invoices. The columns in the excel invoice
sheet are product ID, Name, Price, Quantity and Total price. All
product information is stored in a separate Access DB, but because I am
not a wiz I currently enter all data manually.

To minimize typing and errors I would like the spread sheet to
automatically retrieve specific values (name and price) from the
product table in access using the product ID as criteria. How can that
be done?
 
E

Earl Kiosterud

Hans,

Make a query to retrieve the data from Access. Data - Import External
Data - New database query.

I wonder why you're doing the invoice in Excel. It will probably be easier
to start your invoicing in the Access data base. Nice screen and print
layouts too, not limited to the layout of a worksheet.

Earl Kiosterud
mvpearl omitthisword at verizon period net
 
H

Hans

Earl, thanks for your suggestion, but I am still having trouble. I have
tried to use the query and I can connect just fine to access. My
problem is that I can't get the query to accept the criteria from the
reference cell (the one with the product ID). I was thinking maybe to
use one of the LOOKUP functions, but I am not sure they will do the
job.

I am actually quite happy with the layout of the invoice I have (even
though it is in Excel) and I would very much prefer to continue using
it.

Any additional suggestions you might have are most welcome!
 
G

gocush

Hans

Are you interested in permanently moving the name and price data to a
table in xl? If so then a vlookup would easily take care of your needs
and you would have all your application in one file.

If you still prefer the cross- application style try:

http://www.bygsoftware.com/

they have example xl workbooks which query an Access db.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top