We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

have 3 display as 03 in table from form

davetough
davetough asked
on
Medium Priority
352 Views
Last Modified: 2012-05-11
Hello I have this code:
StrCvsN = IIf([chk1] = -1 Or [chk2] = -1, 3, IIf([chk3] = -1 Or [chk4] = -1, 24, 0))

I cannot change to IIf([chk1] = -1 Or [chk2] = -1, 03,IIf
i am attaching database - the code is behind form- is there a way to display 3 as 03?
thank you
data.mdb
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2016
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Application Developer
CERTIFIED EXPERT
Top Expert 2007
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Commented:
The short answer is NO if you want the result to be cast as a number.  In the two previous answers, the result is cast as a string.
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Application Developer
CERTIFIED EXPERT
Top Expert 2007

Commented:
I was going by 'display'
display 3 as 03

mx

Author

Commented:
thanks- i should of said string- but that is what i need
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.