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

Mask EdBox

Status
Not open for further replies.

dvannoy

MIS
May 4, 2001
2,765
US
i am using a mask text box on a form and am trying to figure something out.

if i set the mask to ##/##/#### it works fine.

now if a user has to go back and edit that field it will not work correctly. by setting the mask I only want two digits before the first /.. but if i call the recordset to the form and try setting the mask field with txtbox = rs.fields("fieldname") it ignores the mask..and will not force the two digits before the first /..it will take as many digits as you enter.

I hope this makes sense..

Thanks in advance

 
Hi dvannoy
Could you post the code.
Thanks,
Razvi
 
Try this

1. First
maskEdBox.promptinclude = false
2.Then
maskEdBox1.text = whatever
 

Try using:

txtbox.Text = Format$(rs.fields("fieldname"),"!@@/@@/@@@@")

or:

txtbox.PromptInclude = False
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top