Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I link a .xls invoice to an access database?

I need the description field in a stock .xls invoice to populate when the
item # has been entered into the item field. I have created the access
database with each item having its own unique ID #.

In the .xls invoice I have Item (101) Description (widget) Quantity (2) and
Cost (.10)

I want to simplify invoicing by only having to enter item # and Qty. The
Description and price should be autopopulated via the information in the
database.

Please Help!

Sincerely Frustrated!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default How do I link a .xls invoice to an access database?

Hi SF,

this can be done with a "parameter" query.

Via data/import external data/new database query

create a query that will retrieve the desired data.
in the WHERE clause type a question mark for the Acct# field.

Your SQL may look like...

SELECT rep.`acct#`, rep.`line#`, rep.acctname
FROM `D:\accts_sh`.`reporting2004$` rep
WHERE (rep.`acct#`=?)


When you close MSQuery , you'll see the ImportData dialog.
Fill in the destination range.

Now click the Parameters Button

Click it and select a cell that will serve as the Acct# selection.
Check the "auto refresh" checkbox.

that's the idea..

Ofcourse the Acct# Parameter cell needs data validation..
so select another range..
insert a new query to retrieve ALL valid account numbers.
Name that query "AcctNrs"

The designate the AcctNrs range to be the datavalidation source for the
"parameter cell" of the main query.

HTH


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"?B?U1BRUg==?=" wrote:

I need the description field in a stock .xls invoice to populate when
the item # has been entered into the item field. I have created the
access database with each item having its own unique ID #.

In the .xls invoice I have Item (101) Description (widget) Quantity
(2) and Cost (.10)

I want to simplify invoicing by only having to enter item # and Qty.
The Description and price should be autopopulated via the information
in the database.

Please Help!

Sincerely Frustrated!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Link to access database Jack Excel Discussion (Misc queries) 0 June 2nd 09 11:21 PM
Update Excel Database via Access Main Database with a script Finnbar New Users to Excel 2 November 3rd 08 07:24 PM
How do break the link from my excel workbook to a access database. Vernon Excel Discussion (Misc queries) 4 November 17th 07 06:26 AM
Moved database, how do I change link to the database in excel Toastrack Excel Discussion (Misc queries) 0 October 20th 06 09:36 AM
How can I create a customer database to use with an invoice? Brenda L. Carroll Excel Worksheet Functions 1 April 25th 06 07:53 PM


All times are GMT +1. The time now is 04:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"