T
Terry
I am currently using the following query to determine which invoices remain
unpaid since the first of the year in our invoice processing database.
Currently the query is based on the following and you must re-enter each
month separately. As an example, if I wanted to know which invoices are
outstanding since the first of the year, I must enter, 01/01/2005 through
05/01/2005 separately. Since the data gained from this query is then issued
in an Excel report this becomes a lengthy and confusing process.
I need to determine either by writing a new query or altering this one, how
I can enter a start and stop date and find those invoices that are unpaid.
Because I specifically need these records broken out by the month they are
missing I am not able to use “Between #date1# And #date2# as my expression
criteria.
Any help and assistance will be greatly appreciated.
SELECT [Account Info Table].[LOB Manager], [Account Info Table].[Line of
Business Number], [Account Info Table].Dept, [Account Info Table].[Vendor
Name], [Account Info Table].[Account Number], [Account Info
Table].[Description of Bill], [Account Info Table].Start, Month([Date
Entered]) AS [Month], [Account Info Table].[Bill Date], Year([Date Entered])
AS [Year], [Account Info Table].Status, [Account Info Table].Audit, [Account
Info Table].Message
FROM ([Account Info Table] LEFT JOIN [Accounts By Month Query] ON [Account
Info Table].[Account Number] = [Accounts By Month Query].[Account Number])
INNER JOIN [Line of Business Number Table] ON [Account Info Table].[Line of
Business Number] = [Line of Business Number Table].[Line of Business Number]
WHERE ((([Account Info Table].[LOB Manager])<>"Bingham") AND ((Year([Date
Entered]))=2005) AND (([Account Info Table].Status)="A") AND (([Accounts By
Month Query].[Invoice Number]) Is Null)) OR ((([Account Info
Table].Status)="AC"))
ORDER BY [Account Info Table].[LOB Manager], [Account Info Table].[Line of
Business Number], [Account Info Table].[Vendor Name], [Account Info
Table].[Account Number], Month([Date Entered]), [Account Info Table].[Bill
Date];
Thank you,
unpaid since the first of the year in our invoice processing database.
Currently the query is based on the following and you must re-enter each
month separately. As an example, if I wanted to know which invoices are
outstanding since the first of the year, I must enter, 01/01/2005 through
05/01/2005 separately. Since the data gained from this query is then issued
in an Excel report this becomes a lengthy and confusing process.
I need to determine either by writing a new query or altering this one, how
I can enter a start and stop date and find those invoices that are unpaid.
Because I specifically need these records broken out by the month they are
missing I am not able to use “Between #date1# And #date2# as my expression
criteria.
Any help and assistance will be greatly appreciated.
SELECT [Account Info Table].[LOB Manager], [Account Info Table].[Line of
Business Number], [Account Info Table].Dept, [Account Info Table].[Vendor
Name], [Account Info Table].[Account Number], [Account Info
Table].[Description of Bill], [Account Info Table].Start, Month([Date
Entered]) AS [Month], [Account Info Table].[Bill Date], Year([Date Entered])
AS [Year], [Account Info Table].Status, [Account Info Table].Audit, [Account
Info Table].Message
FROM ([Account Info Table] LEFT JOIN [Accounts By Month Query] ON [Account
Info Table].[Account Number] = [Accounts By Month Query].[Account Number])
INNER JOIN [Line of Business Number Table] ON [Account Info Table].[Line of
Business Number] = [Line of Business Number Table].[Line of Business Number]
WHERE ((([Account Info Table].[LOB Manager])<>"Bingham") AND ((Year([Date
Entered]))=2005) AND (([Account Info Table].Status)="A") AND (([Accounts By
Month Query].[Invoice Number]) Is Null)) OR ((([Account Info
Table].Status)="AC"))
ORDER BY [Account Info Table].[LOB Manager], [Account Info Table].[Line of
Business Number], [Account Info Table].[Vendor Name], [Account Info
Table].[Account Number], Month([Date Entered]), [Account Info Table].[Bill
Date];
Thank you,