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!

Input Mask in Text Box on form 2

Status
Not open for further replies.

errolf

IS-IT--Management
Aug 21, 2000
51
US
I am using a text box on form to input records to a table. I need to to prefix each record in the table with the letters CPFE. The Input Mask that I am using a present is "CPFE"&&&&&&. This shows correctly in the text box but only the numbers are transferred to the table and not the CPFE prefix. What do I need to do to overcome this situation
In anticipation

Errol Featherstone
 
Thanks for the suggestion, I have tried this but it does not make any difference I still only get the numbers inputted but no prefix.
Thanks again

Errol
 
I would do a check in VBA after update on that text box. Something like...

If left(me.textbox,4) <> "CPFE" Then
me.textbox = "CPFE" & me.textbox
End If
 
Have you tried this ?
"CPFE"&&&&&&[highlight];0[/highlight]

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thanks For your help adding the semi colon and the zero solved the problem.
Thanks
Errol Featherstone
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top