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!

< Today in a AdHoc Function?

Status
Not open for further replies.

handleAKA

Programmer
May 4, 2005
5
US
I have a date/time field I want to show up in a report only if it is < the day the report is run.
(I've tried Now(), Date[$] IsDate.) Any help or ideas would be Great.
 
Conditionally populating a control is done in the OnRow() method of the control itself. In your case, the date field.

Can you insert some code that test the value of the DataRow date field, against NOW() and only set the field if it's < NOW().

Pseduo

OnRow()

IF Not getvalue() < NOW() THEN ' Ensure formats are same
DataValue = Spaces ' DO not show date
END IF

 
Thanks for you help what I ended up doing was;

On the NewReportApp on the methods
On sub Start() I added

TODAY = Now()

I then added TODAY to my Parameters

Then I put in the adHoc field as <:TODAY

Crazy but it works fines.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top