Transform Statement Issue

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

Guest

I have a query set up that uses the contents of two text boxes on a form for
selection criteria. I am trying to use that query in another crosstab query
(using a transform statement) and I get an error "The Microsoft Jet database
engine does not recognize '[Forms]![ReportOutput]![cmbClientId]' as a valid
field name or expression." Is there anyway around this error & situation?
 
Yeah the form is open and the text boxes are filled in. I have had this
problem before with another db. I was able to get around it using a piece of
code to redo the querydef for that one. I knew what fields I was going to
use in that one, this one however needs to be more flexible and I cannot say
what fields may show up.

Thanks Karl for your help.

KARL DEWEY said:
Does the query run ok? The form has to be open.

mcgj said:
I have a query set up that uses the contents of two text boxes on a form for
selection criteria. I am trying to use that query in another crosstab query
(using a transform statement) and I get an error "The Microsoft Jet database
engine does not recognize '[Forms]![ReportOutput]![cmbClientId]' as a valid
field name or expression." Is there anyway around this error & situation?
 
Crosstab queries require that you enter the data types of all parameters.
Select Query->Parameters and enter:
[Forms]![ReportOutput]![cmbClientId] Integer (or whatever)

--
Duane Hookom
MS Access MVP


mcgj said:
Yeah the form is open and the text boxes are filled in. I have had this
problem before with another db. I was able to get around it using a piece
of
code to redo the querydef for that one. I knew what fields I was going to
use in that one, this one however needs to be more flexible and I cannot
say
what fields may show up.

Thanks Karl for your help.

KARL DEWEY said:
Does the query run ok? The form has to be open.

mcgj said:
I have a query set up that uses the contents of two text boxes on a
form for
selection criteria. I am trying to use that query in another crosstab
query
(using a transform statement) and I get an error "The Microsoft Jet
database
engine does not recognize '[Forms]![ReportOutput]![cmbClientId]' as a
valid
field name or expression." Is there anyway around this error &
situation?
 
Duane that took care of the problem. I did not know that Parameters deal
even existed. I guess you learn something new every day!! I have fought
that problem many time and now thanks to you I have a way around it!!

Thanks again.

Duane Hookom said:
Crosstab queries require that you enter the data types of all parameters.
Select Query->Parameters and enter:
[Forms]![ReportOutput]![cmbClientId] Integer (or whatever)

--
Duane Hookom
MS Access MVP


mcgj said:
Yeah the form is open and the text boxes are filled in. I have had this
problem before with another db. I was able to get around it using a piece
of
code to redo the querydef for that one. I knew what fields I was going to
use in that one, this one however needs to be more flexible and I cannot
say
what fields may show up.

Thanks Karl for your help.

KARL DEWEY said:
Does the query run ok? The form has to be open.

:

I have a query set up that uses the contents of two text boxes on a
form for
selection criteria. I am trying to use that query in another crosstab
query
(using a transform statement) and I get an error "The Microsoft Jet
database
engine does not recognize '[Forms]![ReportOutput]![cmbClientId]' as a
valid
field name or expression." Is there anyway around this error &
situation?
 

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

Similar Threads


Back
Top