how to add days to calendar control value in query?

  • Thread starter Thread starter Daniel M
  • Start date Start date
D

Daniel M

I have a form that has a calendar control on it. I need to take the value in
that control and add 5 days to it in a query to do a between. Can someone
help?

something like select....where dateentered between calcontrol.value and
calcontrol.value+5
 
This should work:

....WHERE DateEntered Between [Forms].[YourFormName].[CalControl] and
([Forms].].[YourFormName].[CalControl] +5)

HTH,

Rob
 
Damn i was almost there. Worked great! thanks.

Rob Parker said:
This should work:

....WHERE DateEntered Between [Forms].[YourFormName].[CalControl] and
([Forms].].[YourFormName].[CalControl] +5)

HTH,

Rob


Daniel said:
I have a form that has a calendar control on it. I need to take the
value in that control and add 5 days to it in a query to do a
between. Can someone help?

something like select....where dateentered between calcontrol.value
and calcontrol.value+5
 

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