Avatar of pdvsa
pdvsaFlag for United States of America

asked on 

Min of Dates

Experts, I have a report that groups Dates as in below.  But now I want to change this based on the min of ([tblTransactions].[LatestShipDate]), tblLetterOfCredit].[FinalMaturity], tblLetterOfCredit].[InitialExpireDate] and to keep the formatting as "mmmm yyyy".

How to do this?  thank you

Here is what I am using now but want to make the change as stated:
Dates: IIf(IsNull([tblTransactions].[LatestShipDate]),Format([tblLetterOfCredit].[FinalMaturity],"mmmm yyyy"),Format([tblTransactions.LatestShipDate],"mmmm yyyy"))
Microsoft Access

Avatar of undefined
Last Comment
pdvsa
SOLUTION
Avatar of Patrick Matthews
Patrick Matthews
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of pdvsa
pdvsa
Flag of United States of America image

ASKER

whoa... I will check this out.  thank you...
Avatar of pdvsa
pdvsa
Flag of United States of America image

ASKER

Patrick, pretty crafty.  I think the module is way above me and not sure how to incorporate in the report.  

I used the SWITCH.  However, it seems to select a MIN of " " if one of the dates are Null.  I would need for it to exclude a Null and just select the MIN out of any values that are NOT NULL.  

I hope that makes sense.   thank you. If the Module takes care of this then I might want to use the Module.. let me know.

thank you.
I would have thought that Switch could handle that.  Even if not, then the VBA approach should have no trouble with the nulls.

Can you post a smallish sample file?
Avatar of pdvsa
pdvsa
Flag of United States of America image

ASKER

I somehow missed the post.  Will try to post tom am..   Thanks
Avatar of pdvsa
pdvsa
Flag of United States of America image

ASKER

Patrick:  attached is a pared down version.  The autoexec opens and click "year" then the report button.  I have the module in as well.  I am thinking the module is the way to go.   There is only 1 report in the db.   Thank you for the help.  attached is 2k7.
New---use-this-for-EE.zip
ASKER CERTIFIED SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of pdvsa
pdvsa
Flag of United States of America image

ASKER

Its like reading Chinese to me.   You are too good.   Thanks a mill... Will test when get to computer.
Avatar of pdvsa
pdvsa
Flag of United States of America image

ASKER

I think i get it now.
Microsoft Access
Microsoft Access

Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.

226K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo