473,473 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

input mask, validation rule or other options

3 New Member
Hi, I am working on a continuous form for data entry reasons. One of the fields is a policy number(PolicyNumber) field. The first character of the policy number(which can only be B, C, D or E). That first character also represents how long the policy number can be. B should only be 7 numbers long(only numbers, no letters), D should only be 5 numbers long. I would also like the first character of the field to populate a company name in a separate textbox(Company). B would represent OEM and D would represent OED.

Any suggestions are greatly appreciated.
Jan 20 '16 #1
1 893
Seth Schrock
2,965 Recognized Expert Specialist
I think that your best bet would be to test your input via VBA code and not through the Validation Rule property. You will just have to test what the left character is and based on that check the other criteria. You can also select your company based on your testing.
Jan 21 '16 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Sandy | last post by:
Entries will look like: 01-02 02-03 03-04 and will include a space at the end. I need help on creating a validation rule for these entries. Thank You!
4
by: Ben | last post by:
Hi all, In my STUDENT table, I have a field called STUDENT_NAME. I want the data in this field to be only alphabets with allowance for ' and - ,but nothing else- no digits, no other special...
1
by: Danny | last post by:
What can I enter into the validatioon rule property for a bound text box that points to a field. the field is text and will stay that way. how can I force the user to enter either nothing or a...
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: keithtracypierce | last post by:
1)Access2003, beating my head against the wall, every other iteration is "can't find macro Upshift" followed by carefully verifying that no blank properties have been entered. Making NO changes at...
3
by: ApexData | last post by:
I have an unbound textbox that I want to restrict to 10 characters. I defined the mask as follows CCCCCCCCCC;;" " The problem is that the behavior of the cursor changed beyond my request....
6
by: Michael R | last post by:
I haven't found anything that would help me to understand the correct syntax for having a certain number of digits phone number validation rule. My input mask for this field is: \000\-0000000;;...
18
by: louie310 | last post by:
I am working on a Access data base as a school project. The data base has forms with fields that need to be filled out. The forms currently are set up where certain fields that are required have...
12
alakazamm
by: alakazamm | last post by:
I am building a database on Access 2000 which include a Customer Details table. In this Customer Details table there is a 'Post Code' field which I am required to make an Input Mask to limit the...
8
by: Kaloyan Krumov | last post by:
Here is the setup: table field validation rule Is Null Or Not Like "**" in Form i have textbox that automatically (inputmask) fills in the country phone code Dim mask As String mask = ""...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.