Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Parameter

Status
Not open for further replies.

Shirley

Programmer
Aug 30, 1999
198
US
I am working on a query that I would like to show only record concerned with the beginning date mm/dd/yy where the ending date will be one month only. I've tried ">=[Enter Beginning Date:] + ("m", [Beginning Date] + 1) and this does not work. If anyone got and idea, please let me know.
 
You don't mention the field names, but it sounds like you're not applying the begindate criteria to the begindate field, and the enddate criteria to the enddate field. Try this:<br>
<br>
Put your beginning date criteria in the beginning date column.<br>
Build a calculated column such as &quot;Months&quot; -&gt; Months:DateDiff(&quot;m&quot;,BeginDate,EndDate)<br>
Give your &quot;Months&quot; column a criteria of 1.<br>
<br>
<br>

 
Elizabeth, I tried the solution you suggested, but since most of the EndingDate are Null this would not worked. Thanks for you input, I really appreciate it. I'm still have problem with this, if anyone have an ideal, please let me know.<br>

 
You can a criteria of &quot;Is not null&quot; in a column for EndingDate.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top