Link to home
Start Free TrialLog in
Avatar of puckkk
puckkk

asked on

MS ACCESS CONDITIONAL UPDATE

Hello, easy question, but I'm not good at all in MSACCESE Query.
I have a column (text) with max 5 chars. I want to update the column if string length is less then 5 chars.
I.E. if the record is 4567 I want to make it 04567. If it's 3002 I want 03002.
I want to place a 0 behind if string is 4 chars long. What query can I use?

Thx
Avatar of jjafferr
jjafferr
Flag of Oman image

FiveDigits: format([Your field], "00000")
ASKER CERTIFIED SOLUTION
Avatar of jjafferr
jjafferr
Flag of Oman image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
why a B grade?

was there anything missing?

jaffer
Avatar of puckkk
puckkk

ASKER

Wrong check, I want to check A. Can u change it to A? Thx
thank you puckkk

jaffer