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

Crosstab query that references a form value? 1

Status
Not open for further replies.

sjh

Programmer
Oct 29, 2001
263
US
Hi,
I made a cross tab query based on a regular query that references a form value. When I try to execute the cross tab query, it gives me this error message:

"The Microsoft Jet database engine does not recognize 'Forms![Show Reports]!cboStartYear' as a valid field name or expression."

Is there a way around this?

Please help,
SJH

 
Common issue with Crosstab queries. You must set the parameter data types. Select Query|Parameters and enter:
[red] Forms![Show Reports]!cboStartYear Integer[/red]


Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
I set the parameter data type and I get this error:

Invalid bracketing of name '[Forms![Show Reports]!cboStartYear]'.

????
SJH
 
I have seen this "bug" before. Switch to the SQL view and correct the bracketing:
[Forms]![Show Reports]![cboStartYear]

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Thanks so much Duane!

It worked like a charm.

SJH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top