Crosstab based on a query with parameters fed from a form?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a series of Crosstab queries based on one large query, with a month
field that changes frequently. I want the user to be able to enter the month
in a form, and then run the crosstab. The back-end query works great, but
the crosstab fails because the Jet database engine does not recognize
Forms![ProjectChargesInput]![Month] as a valid expression or field name.
Does anyone know of a way to fix that or work around it to achieve what I
want?

The reason this is so complex is that the users should not have the security
to see the query design to make changes there.
 
You must enter the data type of parameters used in crosstab queries. Select
Query->Parameters and enter

Forms![ProjectChargesInput]![Month] Integer
 
So simple...! Thank you so much!

Duane Hookom said:
You must enter the data type of parameters used in crosstab queries. Select
Query->Parameters and enter

Forms![ProjectChargesInput]![Month] Integer

--
Duane Hookom
MS Access MVP


masterminx said:
I have a series of Crosstab queries based on one large query, with a month
field that changes frequently. I want the user to be able to enter the
month
in a form, and then run the crosstab. The back-end query works great, but
the crosstab fails because the Jet database engine does not recognize
Forms![ProjectChargesInput]![Month] as a valid expression or field name.
Does anyone know of a way to fix that or work around it to achieve what I
want?

The reason this is so complex is that the users should not have the
security
to see the query design to make changes there.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top