Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Format Function in a Query

Status
Not open for further replies.

nikdiva

Programmer
Jul 27, 2001
17
US
Hi All:
I am trying to figure out the problem with the following function used in a update query:

Format([RecID],'000000')

I think what the programmer was trying to do (wasn't me) is format the number as 6 digits so that it could be like "000010" etc.

What is wrong with this picture?

Nikki
[spidey]
 
Not too much except needs double quotes

?format(12345,"000000")
0012345
?format(1234,'000000')
produces error expected expression

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top