T
the bp Guy
I am using a form to supply date for report query. I want to use the same
date in three different places. as you see in the SQL the three places for
dates. when I add +5 to the end I get error that its to complex. I take it
off works ok. I can run it without the form using between #01/01/01# and
#01/01/01#+5 and it works
SELECT tblInvoice.Date, tblInvoice.Customer, tblInvoice.[Invoice#],
tblInvoice.Amount, tblInvoice.creditinvoice, tblcreditcard.Gross,
tblcreditcard.Fee, tblcreditcard.Date
FROM tblInvoice LEFT JOIN tblcreditcard ON tblInvoice.Customer =
tblcreditcard.Customer
WHERE (((tblInvoice.Date)=[Forms]![frmstuartreport]![Text0]) AND
((tblInvoice.Customer)="stuart") AND ((tblcreditcard.Date) Between
[Forms]![frmstuartreport]![Text0] And [Forms]![frmstuartreport]![Text0]+5))
ORDER BY tblInvoice.Date, tblcreditcard.Date;
Thanks for your help
date in three different places. as you see in the SQL the three places for
dates. when I add +5 to the end I get error that its to complex. I take it
off works ok. I can run it without the form using between #01/01/01# and
#01/01/01#+5 and it works
SELECT tblInvoice.Date, tblInvoice.Customer, tblInvoice.[Invoice#],
tblInvoice.Amount, tblInvoice.creditinvoice, tblcreditcard.Gross,
tblcreditcard.Fee, tblcreditcard.Date
FROM tblInvoice LEFT JOIN tblcreditcard ON tblInvoice.Customer =
tblcreditcard.Customer
WHERE (((tblInvoice.Date)=[Forms]![frmstuartreport]![Text0]) AND
((tblInvoice.Customer)="stuart") AND ((tblcreditcard.Date) Between
[Forms]![frmstuartreport]![Text0] And [Forms]![frmstuartreport]![Text0]+5))
ORDER BY tblInvoice.Date, tblcreditcard.Date;
Thanks for your help