hey,
i have a form(with 2 unbound textboxes asking for beg and end dates) that sets the criteria for a crosstab query(which defines a report).
In the query i setup a new field with the same field name as the column heading, from there i added a WHERE clause and in the criteria i typed this:
Between [Forms]![ReportParameters]![BegDate] And [Forms]![ReportParameters]![EndDate]
this is the error i got:
The Microsoft Jet Database Engine does not recognize '[Forms]![ReportParameters]![BegDate]' as a valid field name or expression
I was thinking maybe i have to open the form before the query opens, so that itll find the textboxes, but i can also see how that wouldnt be necessary (i have default values already set, so it should find a date range). Then i also thought maybe i have to make a table for the textboxes, so that the query can get the info off that, but that also seems a bit unnecessary.
so if anyone has encountered this and knows what i should be doing, any and all help would be greatly appreciated.
thanks
Omar Qureshy
HI-Tek
i have a form(with 2 unbound textboxes asking for beg and end dates) that sets the criteria for a crosstab query(which defines a report).
In the query i setup a new field with the same field name as the column heading, from there i added a WHERE clause and in the criteria i typed this:
Between [Forms]![ReportParameters]![BegDate] And [Forms]![ReportParameters]![EndDate]
this is the error i got:
The Microsoft Jet Database Engine does not recognize '[Forms]![ReportParameters]![BegDate]' as a valid field name or expression
I was thinking maybe i have to open the form before the query opens, so that itll find the textboxes, but i can also see how that wouldnt be necessary (i have default values already set, so it should find a date range). Then i also thought maybe i have to make a table for the textboxes, so that the query can get the info off that, but that also seems a bit unnecessary.
so if anyone has encountered this and knows what i should be doing, any and all help would be greatly appreciated.
thanks
Omar Qureshy
HI-Tek