between min/max dates title (1 Viewer)

jedder18

Just Livin the Dream!
Local time
Today, 07:44
Joined
Mar 28, 2012
Messages
135
Trying to place a title on a report with many subreports all using the same table.
Included in this table is a date field.


="Between " & Min([TBLNewMthlyClients].[IntakeDate]) & " and " & Max([TBLNewMthlyClients].[Intakedate])


get a #error on report run.

Obviously, control not correct.
What's not obvious is why? to me anywho!

I should mention, the overall report does not have a control source of this table.
All the subrpts that are on the main report are using the Table as the control source.
 

CJ_London

Super Moderator
Staff member
Local time
Today, 15:44
Joined
Feb 19, 2013
Messages
16,607
you need to clarify what you are talking about. Fields or controls?

do you mean to use the dmin and dmax functions? min and max is a sql action used in a group by query

you get an error - what is the error description?

What is the Table? Do you mean record source rather than control source?
 

jedder18

Just Livin the Dream!
Local time
Today, 07:44
Joined
Mar 28, 2012
Messages
135
I have a main report with no recordsource.
on this main report are 6 subreports all using a query with TBLNewMthlyClients as their recordsource.
I want to use this same table on the main report in an unbound control to give me the min and max intakedate that this report is being run for.

the error is in the field that the control is run just stating #error
 

CJ_London

Super Moderator
Staff member
Local time
Today, 15:44
Joined
Feb 19, 2013
Messages
16,607
sounds like you need to use dmin and dmax

="Between " & DMin("[IntakeDate]","TBLNewMthlyClients]") & " and " & DMax("[Intakedate]","TBLNewMthlyClients]")
 

Users who are viewing this thread

Top Bottom