Try this:
="Literal Text" & Format(Replace([YourDateDield], " ", "/"),"mmddyyyy")
--
Ken Snell
<MS ACCESS MVP>
http://www.accessmvp.com/KDSnell/
Steve:
Thank you for the assistance on this, though this does not seem to
work.
If I enter it as you instructed it acts in the same manner as it was
doing
without the =. I tried changing this format in both the table and the
form,
while leaving the caption set to
='literal text' & [Name of Field]
but this continues to return the same value namely
literal text 2 14 2009
I woulf like it to be reading
literal text 02142009
This is I would no spaces with the leading zeros left in place. Any
other
ideas? If not, I can always continue to rename the files, though
automation
would be nice. In either case, thank you for your assistance on this.
Brian
:
Brian,
Try putting an = sign in the beginning of the expression.
--
Steve Schapel, Microsoft Access MVP
message
Ken:
Thanks for the assistance, but I am trying to use the actual current
value
in the field rather than the field name itself. I tried your
suggestion
just
to see if this would work and it creates an exact replica of what I
enter.
That is, if I enter
"Literal Text " &[NameOfFieldInForm'sRecordSourceQuery]
then I get
"Literal Text " & [NameOfFieldInForm'sRecordSourceQuery]
returned as the caption. It seems to read the whole line as literal
text.
Maybe I am doing something incorrectly?