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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pass 11 0's in a empty field automatically

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
What i need is when the user don't insert nothing in a field automatically this field put 11 0's. How can i do it?

Tkx

;-)
 
String(11, "0")
MichaelRed
mred@att.net

There is never time to do it right but there is always time to do it over
 
MyResult = IIf(IsNull(MyControlName)=TRUE,"00000000000",[MyControlName])

Joe Miller
joe.miller@flotech.net
 
Right click on text box, select properties, and place Joe's code in the control source as follows:
= IIf(IsNull(MyControlName)=TRUE,"00000000000",[MyControlName])


Begin with the equals sign.

mac318
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top