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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using a form control in a cross tab query 1

Status
Not open for further replies.

kkarren

Technical User
Mar 30, 2000
33
US
I have a query that selects a date range from a form. The query itself runs fine, however when I attempt to use the query for the basis of a cross tab query it errors out and give me a message " The Microsoft Jet database engine does not recognize'[forms]![frmwork]![start_date] as a valid field name or expression" Are there any ideas why I am getting errored out when the expression works fine in the regular select query?
 
If your crosstab query depends on parameters, you have to define such parameters in the base query.
Go to the base query in Design View, click Query->Parameters.
Enter the parameter names : [forms]![frmwork]![start_date] and [forms]![frmwork]![end_date]
and the correct type (probably Date/Time)

Save the base query and run the crosstab. It should work.

Dan
 
Thanks Dan that worked. You are awesome.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top