Microsoft
Software
Hardware
Network
Question : add a zero to a number...
I get the time from a field (the time comes as numeric). it is militarty time, when it's before 1200 it drops the 0. ie; 073502 is 73502
well when I use STUFF() to put in the ":" the under 1200 ends up being wrong... instead of 7:35:02 it will be 73:50:2
what is the best way to get a zero in there?
or a set something on?
thanks
Answer : add a zero to a number...
Use TRANSFORM if the input value is really numeric:
? TRANSFORM(73502, "@L 99:99:99")
If the vaule is character then you may convert it by VAL() function:
? TRANSFORM(VAL("73502"), "@L 99:99:99")
Random Solutions
docmd.closeform
MS EXchange 2003 Permissions
MS Access custom help screens
Behavior of Word mail merge to e-mail from Access
FileZilla FTPS, Cisco ASA - 425 Can't open data connection.
BSOD errors that I can't track down!! <---- n00b alert!!
WMPnetwork.exe service using 2GB of RAM released process and pc working ok.
sum and match result in table
Installing Enterprise Library 3.1 generates "Unable to get installer..." error
0xc0000098 - Cannot Install Windows Xp / Vista