date criteria problem

  • Thread starter Thread starter rs0905
  • Start date Start date
R

rs0905

I am trying to create a query that looks for date values that are greater
than or equal to a date value on an open form:
=[forms]![counselorreportmenu]![txtbegin]

This isn't working. The field on the form is a date format field. What can
I do to get this to work? I had a similar problem in code on a form where I
was trying to find dates greater than a string date value. Wondering if it
is a formatting issue on the returned value...?

Thanks in advance!
 
NEVERMIND!

I just used DateValue and now it's working. Thanks anyway!

rs0905 said:
I am trying to create a query that looks for date values that are greater
than or equal to a date value on an open form:
=[forms]![counselorreportmenu]![txtbegin]

This isn't working. The field on the form is a date format field. What can
I do to get this to work? I had a similar problem in code on a form where I
was trying to find dates greater than a string date value. Wondering if it
is a formatting issue on the returned value...?

Thanks in advance!
 
Here was my solution. I placed this code into the query grid under the
field StartDateFilter:Date1
=IIf(IsNull([Forms]![C25]![StartDateFilter]),[Date1],[Forms]![C25]![StartDateFilter])


rs0905 said:
I am trying to create a query that looks for date values that are greater
than or equal to a date value on an open form:
=[forms]![counselorreportmenu]![txtbegin]

This isn't working. The field on the form is a date format field. What can
I do to get this to work? I had a similar problem in code on a form where I
was trying to find dates greater than a string date value. Wondering if it
is a formatting issue on the returned value...?

Thanks in advance!
 

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

Query Criteria 2
Using Crosstab column headings for conditional formatting in report 0
Excel Need Countifs Formula Help 0
date calculation 5
Date/Time criteria problem 2
Date parameter question 2
Date Criteria 4
Date comparison 2

Back
Top