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

Find First Date in Recordset

Status
Not open for further replies.

denright

Programmer
Oct 19, 2001
7
0
0
I have a Report that is based on a Query. I want one field on the Report to show the earliest date in the recordset. I am having a total blank on the best way to achieve this. I'd appreciate any help on this. Thanks!
 
You should be able to add a field to your report.

=DFirst("DateFieldName","TableName","PrimaryKeyFieldInTable = '" & [KeyFieldinReport] & "'"

This syntax is for a text datatype Key field. If it's numeric, get rid of the single quote ' marks.

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top