Date Range

G

Guest

Hi,

When I want the date rage appeared on the report header, I use textbox and put
(qry criteria) in its recordsource. It works fine.

However, For this time, I got a message like this ‘First([Between [From this
date] And [To this date]])"

Is there something wrong with the qry criteria?

Would you please show me how to fix the problem?

Thanks

Chi
 
G

Guest

It's very hard to understand the crtieria, can you post the full SQL

What is the First in the beginning?
Why there are to square brackes in the end And in the beinning?

First([Between [From this date] And [To this date]])"

Try
Between [From this date] And [To this date]

Also to write the criteria in the text box, use the control source with

="Between " & [From this date] & " And " & [To this date]
 
G

Guest

The 'First' seems like it is from a totals query and the [Between [From this
date] And [To this date]] was placed in the field row of query design view.
 
G

Guest

Thank you Ofer and Karl,

It works!!!!!!!!!!!!!!!. Excellent!


-----------------------------------------------

Ofer Cohen said:
It's very hard to understand the crtieria, can you post the full SQL

What is the First in the beginning?
Why there are to square brackes in the end And in the beinning?

First([Between [From this date] And [To this date]])"

Try
Between [From this date] And [To this date]

Also to write the criteria in the text box, use the control source with

="Between " & [From this date] & " And " & [To this date]
--
Good Luck
BS"D


Chi said:
Hi,

When I want the date rage appeared on the report header, I use textbox and put
(qry criteria) in its recordsource. It works fine.

However, For this time, I got a message like this ‘First([Between [From this
date] And [To this date]])"

Is there something wrong with the qry criteria?

Would you please show me how to fix the problem?

Thanks

Chi
 

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

Top