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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flexible "Count"...Anything like it? 3

Status
Not open for further replies.

Stevehewitt

IS-IT--Management
Jun 7, 2001
2,075
GB
Guys,

I won't go into why (very long story) but I need to run a count on a column which is presented in a report.

Nice and simple...

However I need the count to only count the record if it meets a criteria. (It's todays date - =Date()) Can this be done? I can't use a SQL query for reasons that are evident in thread707-1035568 but there must be something reasonably flexbile that would allow me to do this.

Thanks,


Steve.
 
Try something like this in the controlsource of a control in the report footer:

[tt]=abs(sum([txtDateControl]=Date()))[/tt]

Roy-Vidar
 
Roy, you are a diamond. I've posted three threads about this and spent hours trying to work out what I need to do! If I could give you 10 stars I would! :)

Nice one, thank you.

Cheers,


Steve.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top