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 Command Problem 1

Status
Not open for further replies.

Japskunk72

Programmer
Feb 19, 2003
64
US
I have a program that uses ADO to connect to SQL DB. I have a feild for date that formated like this ########. when i take it from the database i format it to ##/##/####.
my problem is when the first # = 0 it doesnt display the 0. like if the SQL data i am pulling = 09032003 then the formated result after
format(Dbrec!Date,"##/##/####")
the result would be
9/03/2003
is there a simple way to keep the 0 infront of the 9? so my result would be
09/03/2003?
Thanks
JT
 
Thanks allot CCLint, I new it was something simple I was forgetting.
Going to be one of those days
Thanks
JT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top