Find first date in recordset to use for calculated control (1 Viewer)

lscheer

Registered User.
Local time
Today, 03:24
Joined
Jan 20, 2000
Messages
185
I have an invoice report that has a calculated control for billing cycle. Currently it is set to

=[Enter start date] & "-" & [Enter end date]

This is because the start date depends on the date of the first charge and changes every month, so the user enters the dates simply for display purposes. What I was hoping to do is have the start date determined automatically based on the underlying recordset. Is there a way to find the first date in the recordset and use it as the start date in the calculated control?
 

vbaInet

AWF VIP
Local time
Today, 03:24
Joined
Jan 22, 2010
Messages
26,374
Look into the DMax() function.

Will you still have the [Enter end date] parameter? It seems redundant to me.
 

lscheer

Registered User.
Local time
Today, 03:24
Joined
Jan 20, 2000
Messages
185
Perfect, thanks! I can't believe I spaced DMax. And yes, since DMin and DMax work for both the start and end dates, I will just use those.
 

Users who are viewing this thread

Top Bottom