"Format" in expression

  • Thread starter Thread starter Susie
  • Start date Start date
S

Susie

I have a database created in Access 97 that's been
converted to Access 2000. In 97, I was able to use the
Format function in a text box control source expression to
format a date/time field so that just the date would
print - =Format([RegDate],"mm/dd/yyyy"). This has worked
great for a couple of years. In the 2000 db, any time I
try to use this same expression a parameter box appears
asking for "Format". If I change the expression to just
[RedDate], I don't get the parameter box but the time
appears after the date, not the result I want in a summary
expression for an entire day, not just one instant in
time. What also puzzles me is that if I use a wizard in
2000 to build a new report, it creates a Format expression
as above, but again doesn't seem to know what to do with
it. Any ideas from anyone? I'm not a whiz of a
programmer, but have used the wizards with very good
results until converting to Access 2000.
Thanks very much in advance,
Susie
 
Susie said:
I have a database created in Access 97 that's been
converted to Access 2000. In 97, I was able to use the
Format function in a text box control source expression to
format a date/time field so that just the date would
print - =Format([RegDate],"mm/dd/yyyy"). This has worked
great for a couple of years. In the 2000 db, any time I
try to use this same expression a parameter box appears
asking for "Format". If I change the expression to just
[RedDate], I don't get the parameter box but the time
appears after the date, not the result I want in a summary
expression for an entire day, not just one instant in
time. What also puzzles me is that if I use a wizard in
2000 to build a new report, it creates a Format expression
as above, but again doesn't seem to know what to do with
it. Any ideas from anyone? I'm not a whiz of a
programmer, but have used the wizards with very good
results until converting to Access 2000.
Thanks very much in advance,
Susie
Susie,
Open any module in Design view, or press Ctrl + G.
On the Tools menu, click References.
Click to clear the check box for the type library or object library
marked as "Missing:."

An alternative to removing the reference is to restore the referenced
file to the path specified in the References dialog box. If the
referenced file is in a new location, clear the "Missing:" reference
and create a new reference to the file in its new folder.

See Microsoft KnowledgeBase articles:
283115 'ACC2002: References That You Must Set When You Work with
Microsoft
Access'
Or for Access 97:
175484 'References to Set When Working With Microsoft Access' for
the correct ones needed,
and
160870 'VBA Functions Break in Database with Missing References' for
how to reset a missing one.
 
Fred
Thanks very much - I've been having a fit over this and
knew it had to be something simple, but had forgotten
about the Reference. I really appreciate the quick
response.
Happy New Year!
Susie
 
Back
Top