473,385 Members | 1,620 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,385 software developers and data experts.

Creating custom Input Masks...

Morning All,

I'm trying to ensure that when the user enters a number on a form, the
database automatically leaves a space after the 3rd number. I've tried
to do this using input masks, but when I tab to the text box, the ___
_____ shows up and I can't enter anything at all.

Cheers

Reg

Nov 13 '05 #1
6 5968
Regnab wrote:
Morning All,

I'm trying to ensure that when the user enters a number on a form, the
database automatically leaves a space after the 3rd number. I've tried
to do this using input masks, but when I tab to the text box, the ___
_____ shows up and I can't enter anything at all.

Cheers

Reg


Is your control source (field from the table) a number field or text
field? If number, change it.

You might want to write a function to insert the space into a field that
contains numeric. Since it appears you don't have any control over
where the 3 numbers appear; 123 56 or A123 56 or AB123 56 then an input
mask would be a bit worthless don't you think?
Nov 13 '05 #2
Cheers for the response Salad, but I think you may have misunderstood
what I meant. The space is at the 3rd number - the 3rd character. Eg
982 000039485483. And at the moment, I believe it is a text field. It's
a number which comes from an RFID tag on an animal.... all cattle in
Australia now have a RFID device which when scanned produces this 16
digit (15 digits and a space) number. From time to time they get
entered by hand = voila the reason I'm trying to use the input mask.

Nov 13 '05 #3
Regnab wrote:
Cheers for the response Salad, but I think you may have misunderstood
what I meant. The space is at the 3rd number - the 3rd character. Eg
982 000039485483. And at the moment, I believe it is a text field. It's
a number which comes from an RFID tag on an animal.... all cattle in
Australia now have a RFID device which when scanned produces this 16
digit (15 digits and a space) number. From time to time they get
entered by hand = voila the reason I'm trying to use the input mask.

I created a text field on a form. For the input mask I have
###\ ############
and it appears to work OK.

Open up the form in design mode and open up the property sheet for the
text field. Then click on the data tab. See waht you have as the input
mask. Next, under the input mask you'll see Enabled and Locked. Verify
Enabled is True and Locked is False. It's quite possible Locked is set
to True thus allowing you to have focus to the field but not the ability
to enter data.
Nov 13 '05 #4
Perfect - thanks for your help Salad....

Nov 13 '05 #5
Try this:

000\ 000000000000;0;" "

Nov 13 '05 #6
Cheers Setup....but don't they both do the same thing or am I missing
something??

Nov 13 '05 #7

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

Similar topics

2
by: Mark Lees | last post by:
I want to create an input mask for a phone number and I would like the area code to always be (801). However, I want the users to be able to edit it if necessary. Would it look like this =...
4
by: David W. Fenton | last post by:
I'm working on a subform where users put in 24-hour time. On their paper forms, they've been accustomed to referring to midnight as 24:00 (instead of as 0:00, which kind of makes sense from a human...
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!
2
by: pshvarts | last post by:
(I'm new in SOAP) I get some wsdl file (from apache service ). I tried creating SOAP client with .NET - trying to add Web Reference and get error like: "Custom tool error: Unable to import...
16
by: Filips Benoit | last post by:
Dear all, I have a datefield that sometimes should store hours and minutes too ans use following format and inputmask. dd/mm/yyyy hh\:nn 09/09/0000\ 99:99;0;* Typing date, hour and...
2
by: bobrics | last post by:
Hi, I would like to create a packet for a RAW socket transfer. Please let me know if this is the right approach. 1. First, I am creating a header structure where I store all the information I...
4
by: Dave | last post by:
Hello - Say I have a 32 bit value in data (v:4, r:4, l:8, p:16) unsigned char data; Now, for portabilities sake, I want to use shifts and masks to access these fields, instead of accessing...
3
by: louie310 | last post by:
I finally came up with an answer for creating a custom message if the input mask is violated. In the properties window for the phone field, open the data tab. In the validation rule I typed in the...
5
by: ezechiel | last post by:
hi everyone.. i read on another forum that it is possible to define multiple input masks for a textbox (for example). There is a textbox field where you can enter the name of a machine. The...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.