I'm trying to use "gampm = Right(CTime({datetimefield}),2)" to get the AM/PM part of the DateTime field. However I get the message "A string is required here" with the cursor positioned after "Right(". What type does CTime() return? How should I accomplish this?
It kind of worked. The line appeared after the first PM. I believe this may be because I have my detail fields in a group header to avoid a list of duplicate records. The AM PM line is in that group footer.
I'll just add a parent group based on @AMPM and put the line in that group header. We'll see how that works.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.