Date parameters not working

G

Guest

Hello, I am running a query the selects records based on a number of
different criteria. The date range and craft a supplied by a form. The Unit
is determined by the query.

The problem I am having is that the date range is not working. I am getting
no errors. I just get all the records instead of the range I selected in my
form. Here's what is in the criteria.

between [forms!][frmrptdata][txtstart] and [form!][frmrptdata][txtend]

Any help would be greatly appreciated
 
G

Guest

This should Be :

BETWEEN [forms]![frmrptdata]![txtstart] AND [form]![frmrptdata]![txtend]

or

BETWEEN forms("frmrptdata").txtstart AND forms("frmrptdata").txtEnd

- Raoul
 
V

Van T. Dinh

BETWEEN Forms!frmrptdata!txtstart
AND Forms!frmrptdata!txtend

Be careful with spelling. You left out the "s" in the second "forms" in
your post and the other respondent did likewise.
 
G

Guest

Indeed thx

- Raoul

Van T. Dinh said:
BETWEEN Forms!frmrptdata!txtstart
AND Forms!frmrptdata!txtend

Be careful with spelling. You left out the "s" in the second "forms" in
your post and the other respondent did likewise.

--
HTH
Van T. Dinh
MVP (Access)




Sarah said:
Hello, I am running a query the selects records based on a number of
different criteria. The date range and craft a supplied by a form. The Unit
is determined by the query.

The problem I am having is that the date range is not working. I am getting
no errors. I just get all the records instead of the range I selected in my
form. Here's what is in the criteria.

between [forms!][frmrptdata][txtstart] and [form!][frmrptdata][txtend]

Any help would be greatly appreciated
 
G

Guest

I apologize, I typed incorrectly in my nmessage. It is correct however in the
query. Any other suggestions?

Sarah

Van T. Dinh said:
BETWEEN Forms!frmrptdata!txtstart
AND Forms!frmrptdata!txtend

Be careful with spelling. You left out the "s" in the second "forms" in
your post and the other respondent did likewise.

--
HTH
Van T. Dinh
MVP (Access)




Sarah said:
Hello, I am running a query the selects records based on a number of
different criteria. The date range and craft a supplied by a form. The Unit
is determined by the query.

The problem I am having is that the date range is not working. I am getting
no errors. I just get all the records instead of the range I selected in my
form. Here's what is in the criteria.

between [forms!][frmrptdata][txtstart] and [form!][frmrptdata][txtend]

Any help would be greatly appreciated
 

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