Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Parameter for 2 subreports and 1 source query

Status
Not open for further replies.

summer01

Technical User
Jan 28, 2008
19
US
I have created 2 separate Chart reports from a single query and did not show any date parameters. I placed them both on a report that is not bound to a query. I have been looking on the internet and have tried a several different things, but they are not working. The following link gives great info but does not work in my situation and I keep getting invalid braketing errors.
I have tried unbound text boxes for begin and end dates and that is not working. I put a date parameter on my source query for the charts and it ends up giving me pages and pages of the same chart. Below is the sql of my source query: Any ideas you might have will help.

SELECT tblPhoneCalls.[Supp ID], tblPhoneCalls.[Type Of Call], tblPhoneCalls.[Reason For Call], tblPhoneCalls.[Line Of Business], tblPhoneCalls.Comments, tblPhoneCalls.ResourceUsed, tblPhoneCalls.[Date Entered]
FROM tblPhoneCalls;
 
Have you tried:

Code:
SELECT tblPhoneCalls.[Supp ID], tblPhoneCalls.[Type Of Call], tblPhoneCalls.[Reason For Call], tblPhoneCalls.[Line Of Business], tblPhoneCalls.Comments, tblPhoneCalls.ResourceUsed, tblPhoneCalls.[Date Entered]
FROM tblPhoneCalls[red]
WHERE tblPhoneCalls.[Date Entered]) Between forms!frmMyForm!txtFromDate AND forms!frmMyForm!txtToDate;[/red]

?

JB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top