473,320 Members | 2,080 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Input mask

Seasons Greetings to All!

I want to create a input mask for a textbox containing a field in a access
database. The field would be xxx-xx-xxxx . I cant figure out where to
start...
Help?
Nov 20 '05 #1
3 2960
Hi,

http://www.thecodeproject.com/vb/net/validtext3.asp

Ken
-------------
"Stephen" <St******@xjohnstontrading.com> wrote in message
news:e8**************@TK2MSFTNGP09.phx.gbl...
Seasons Greetings to All!

I want to create a input mask for a textbox containing a field in a access
database. The field would be xxx-xx-xxxx . I cant figure out where to
start...
Help?

Nov 20 '05 #2
Stephen,

Check out the Masked Edit control,

MSMASK32.OCX

------------------------------------------------Sub InitMedDate()
With Me.medDate
'This box will hold date information.
.Mask = "##/##/##"
.Text = "12/01/99"
'The user likes bold Arial font at double the default.
'Double the size of the control to fit.
.FontName = "Arial"
.FontBold = True
.FontSize *= 2
.Height *= 2
.Width *= 2
End With
End Sub

Public Sub medDate_Enter(ByVal sender As Object, ByVal e As
System.EventArgs) Handles medDate.Enter
'The user prefers yellow on purple for entering text.
Me.medDate.BackColor = Color.Purple
Me.medDate.ForeColor = Color.Yellow
End Sub

Public Sub medDate_Leave(ByVal sender As Object, ByVal e As
System.EventArgs) Handles medDate.Leave
'Set the colors back to the default after leaving the edit box.
Me.medDate.BackColor = Me.medDate.DefaultBackColor
Me.medDate.ForeColor = Me.medDate.DefaultForeColor
End Sub------------------------------------------------Gary
Nov 20 '05 #3
* "Stephen" <St******@xjohnstontrading.com> scripsit:
I want to create a input mask for a textbox containing a field in a access
database. The field would be xxx-xx-xxxx . I cant figure out where to
start...


<http://www.codeproject.com/vb/net/CpFlexMaskEditBox.asp>
<http://www.codeproject.com/useritems/ValidText3.asp>
<http://www.codeproject.com/useritems/MaskedBox_Control.asp>
<http://www.codeproject.com/useritems/ValidText.asp>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: dude | last post by:
hello how would i make an input mask that only makes the first letter a capitol one? i've been playing around and testing various masks, also tried the wizard, but i've had no luck. could...
2
by: Ellen Manning | last post by:
I've got an A2K database with a link to a table in another A2K database. This linked table contains SSN formatted with the SSN input mask. I'm trying to use a dlookup using this linked table. ...
9
by: Paul | last post by:
hi, is there an input mask i could use on a report to do the following: (1) if i enter "THISISATEST" on my form, i want the text box on my report to display: "T H I S I S A T E S T". (2) if...
2
by: johnp | last post by:
Hi, Our Tech department updated users to Office 2003 this week. Now the input mask in one of the applications is showing up as: (###) ###-### The input mask wizard works correctly when I...
7
by: F. Michael Miller | last post by:
I have a db with Access front end, sql back, linked tables. I need to be able to change input masks at the table level in code. Any ideas? Thanks!
3
by: AA Arens | last post by:
When I want the first character of a field to be Uppercased, I need to make an input mask, like >L< followed by ??????? for example. But this mask creates ____ in an unfilled field, which I don't...
9
by: msnews.microsoft.com | last post by:
Hello. How can I set input mask for TextBox? Or can I use for mask input some other control?
1
ADezii
by: ADezii | last post by:
The following characters define an Input Mask: Character - Description 0 - Digit (0 to 9, entry required, plus and minus signs not allowed). 9 - Digit or space (entry not required, plus...
2
by: sparks | last post by:
Can you do this. We have some fields with double set and an input mask of fixed decimal place 2 input mask ###.## works great..
7
desklamp
by: desklamp | last post by:
I'm a total Access newbie, please bear with me! Using Win2K/Access 2003. I'm trying to create a table in which I can store IP addresses and other information. According to Microsoft, there is no...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.