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

Input Mask to Zero Fill Leading Blanks 1

Status
Not open for further replies.

OB1too

Technical User
Jun 7, 2000
37
AU
Trying to create a Text Box on a Form which is input into a Query. The field I'm "searching" on in the Table is Text , e.g. 0000000123.
I want to be able to type 123 into the Form Control and that to be converted to 0000000123 for the Query. Any help would be very much appreciated.
Thanks
 
If you're using the form control as criteria for a field in the query it probably looks something like the following:

Forms!FormName!ControlName

change it to:

Format(Forms!FormName!ControlName, "0000000000")
 
Brilliant!....Thanks for that...the first one did the trick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top