VBA to allow configured querry.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



So I have experience (nothing real indepth) in programming in Excel, but now
that I am trying to apply it to Access nothing much seems to translate. Down
to the question. I have a DB that will eventually email customers about past
due invoices. I have the emailing part down from some borrowed code in
another DB we use internally. The DB will consist of the below. I need to
know if it is possible to build either querries or reports on a customer
basis and then export the querry/report in excel so that I can attach them
individually through the emailing code.


Link Table -
ARTable - An excel file that comes from an internal program. Contains
information on accounts receivable (ie. client name, client number, invoice,
invoice date, balance and invoice age.

Table
tblClientInfo - tbl that will be updated by the admin. Will contain client
name, client number, local contact, contact's email, payment terms.

Querry -
qrycustomerOutsideTerms - relationship between client number in tblClientInfo
and ArTable shows all invoices with client number name and age that the age
is greater than the terms.

I would like to be able to take qryCustomerOutsideTerms and have access
create one file for each customer that has invoices on
qryCustomerOutsideTerms. I already have the code to send the emails but am
stuck on trying to get the qry to be confirgurable to that level without
manually creating a seperate query per customer (200 + customers on the AR at
any given time). Thanks for any help.

.



Relevant Pages

  • 1.disconnection from data host 2.inability to populate excel file
    ... My VB 6.0 software solution for a client will apparantly disconnect from ... the data host in a peer-to-peer network when running a particular routine. ... Another customer I have wants the results from a proceedure to export to ... I had him do a full re-install of Excel with all options turned ...
    (microsoft.public.vb.general.discussion)
  • Configureable Query or otherwise
    ... So I have experience in programming in Excel, ... know if it is possible to build either querries or reports on a customer ... information on accounts receivable (ie. client name, client number, invoice, ... and ArTable shows all invoices with client number name and age that the age ...
    (microsoft.public.access.queries)
  • Re: Configureable Query or otherwise
    ... qrycustomerOutsideTerms, "sending" to your query its argument, the client ... but listing the client only once. ... know if it is possible to build either querries or reports on a customer ... and ArTable shows all invoices with client number name and age that the ...
    (microsoft.public.access.queries)
  • Re: Is merging rows possible?
    ... My client will give me data that appears something like Step 1 below (in ... file) to reach an ascending order of customers. ... any customer could have ordered all three services or any ... We are using Excel 2000 at work. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Invoices
    ... report there and you may want to bring some of that to Excel, ... this up in Excel could get ugly. ... > report each month on client movement, ... > report on individual invoices created during each month. ...
    (microsoft.public.excel.setup)