Need Help With Required Field - Different Character Lengths

Sep 15, 2005

I need help with a required field that has different character lengths.

I have an input mask that covers the first 7 characters, however, the users are still entering the incorrect policy numbers, I need to put a stop to it.

I have 3 different policy number lengths involved, 7, 8 and 9.
They are different kinds as well, alpha, alpha/numeric and numeric.

Example below:
P###### - 7 characters
02###### - 8 characters
02M##### - 8 characters
NX####### - 9 characters
HX###### - 8 characters
HXL##### - 8 characters
HXM##### - 8 characters

My question is this -- do I have to create 7 different forms or can I program it to accept only the certain (policy#) characters above. Or can I create a query to insert into my form.

Any help is appreciated, Thanks as always.

View Replies


ADVERTISEMENT

Need Help With Required Field - Different Character Lengths

Sep 15, 2005

I need help with a required field that has different character lengths.

I have an input mask that covers the first 7 characters, however, the users are still entering the incorrect policy numbers, I need to put a stop to it.

I have 3 different policy number lengths involved, 7, 8 and 9.
They are different kinds as well, alpha, alpha/numeric and numeric.

Example below:
P###### - 7 characters
02###### - 8 characters
02M##### - 8 characters
NX####### - 9 characters
HX###### - 8 characters
HXL##### - 8 characters
HXM##### - 8 characters

My question is this -- do I have to create 7 different forms or can I program it to accept only the certain (policy#) characters above. Or can I create a query to insert into my form.

Any help is appreciated, Thanks as always.

View 3 Replies View Related

Modules & VBA :: Adjust Required Field - Space Bar Character

Aug 30, 2013

How can I adjust my required field so that you cannot simply enter a space bar character to circumvent the requirement?

Here is part of the code:

If IsNull([txtRequiredReason]) Then
MsgBox "The Reason field is required"
DoCmd.GoToControl "txtRequiredReason"

Else

View 1 Replies View Related

Modules & VBA :: InStr (3rd Instance Of Character Required)

May 1, 2014

I use the following code to get the first and second instances of a "/" character. How to get the position of the third instance.

iUPC = "123-7754LF-(A/S red Top)-T19/97876564"
'get number of instances
xTimes = 0
xTimes = Len(iUPC) - Len(Replace(iUPC, "/", ""))
'get position of characters
xInstance1 = InStr(1, iUPC, "/")
xInstance2 = InStr(InStr(1, iUPC, "/") + 1, iUPC, "/")

View 4 Replies View Related

Field Lengths Don't Impact Table Size

Sep 28, 2006

I just discovered that field lengths don't influence table size because Access doesn't pad fields.

A text field with length 20 or 255 doesn't impact the size of the table, just the data in the field does.

I did a test to confirm this.

This blew me away.

So now I ask why do we specify field length for text fields?

View 1 Replies View Related

Inserting Time Into Access 2010 Query Field When Character Is Entered In That Field

Mar 4, 2015

Here is what I am trying to do. I have a query with 2 fields. "Time In" & "Time Out". What I would like to happen is this. Whenever a character, let's say a "t", is entered into that field I would like the current time to populate that field. Right now we are actually typing in the time. I have the fields set up as DateTime fields currently.

View 10 Replies View Related

General :: SELECT INTO With Control Of New Table Column Lengths

Aug 28, 2013

I have a SELECT INTO query that pulls info and drops it into a table, after deleting the target table and making it anew upon insertion of the selected records... Is there some way to accomplish the same feat without deleting the target table, so I could retain the target table's fields/field lengths?

I would first set up a target table with fields of specific lengths, and when the data is inserted, the data that fits would insert into these fields, and data that didn't would be truncated..I guess my problem is that when the new table is created it makes all the fields string 255 which is too long when I goto export the data, without having to clip/trim the data for use.

View 4 Replies View Related

Space Character In A Field

Oct 12, 2005

Hi!
I have a field that has to be 20 Characters long. Most of the time data for this field is less than 20 characters, so the remaining has to be filled with spaces to make it 20. e.g. if there is a record xyz1234567, then the rest of the record should have 10 spaces like xyz1234567ssssssssss, meaning if i click on this record then the cursor should not blink after 7 but after the spaces. Hope I am making sense.
Thanks for any input.

View 1 Replies View Related

How To Hide A Character In A Field?

Jun 20, 2007

I have a field which looks like this - "d123456", I will have to display the field without the "d" in front, meaning I will need to show "123456" Any idea how I can do this? Thanks!

View 4 Replies View Related

General :: Report That Show Daily Activities - Adding Time Lengths

Feb 25, 2014

I have a report that shows the daily activities. it shows how long it takes to do each task. however some tasks are 8 hours andsome are 10 hours. when all these times are added together it will give the time on a clock. not a total of hours spent.

i.e.
treatment1 : 8 hours
treatment2: 10 hours

this will give 06:00 in short time. in medium time it will give 18:00.

however if I add another 12 hours to that it will give 06:00.

I want it to show either 1 day and 4 hours /or 30 hours.

View 7 Replies View Related

Highest Character Count In A Field

Dec 17, 2007

I have a large table (over 20,000 records) where the text fields were all set at 255 - even those requiring a single character entry. Is there a way to determine the highest existing character count for each field so I can set the text fields to a reasonable setting? After a compact and repair will existing records be set to the new setting?

View 1 Replies View Related

Finding The Position Of A Character In A Field

Sep 18, 2007

I am trying to find the position of a "," in a data field.

I was trying the SEARCH function I found in Help "SEARCH(',',[emplname])", but I am getting "Undefined function 'SEARCH' in expression." when I run the query.

Any ideas?

Thanks,
Jeff

View 4 Replies View Related

Queries :: Remove ( - ) From Six Character Field

Jun 4, 2013

I have a field called "SC" with a value 13-251. I need to remove the "-" ending up with 13251. I tried using, as a starting point, Mid(String, Start, Length) with no success. I found this in another topic, and thought this might be close to what I was looking for. I sure did not know how to use it. When I selected the run command I got the following response:

Query must have at least one destination.

I tried a few different things like adding an extra field and different pointers but I doubt if I'm even standing in the batters box.

View 3 Replies View Related

Fixed Character Length Of Field

Sep 29, 2011

I have a column in my table, and its size is set to 10 characters. In a form, i have a combobox based on that column, which contains the values "Corrective", "Preventive", and "Supplier". both Corrective and Preventive are 10 characters, and fill up the field to its max, however, Supplier is only 8 characters. When I look back in the table data, there are two spaces after Supplier. Basically, I can use the arrow keys to "see" the two blank character spaces. Why is that? Are these extra blank spaces taking up space they shouldn't?

View 3 Replies View Related

Making A Field Required Based On Value Of Another Field

Jun 18, 2015

I am trying to do something that I would think is very simple but I'm having a hard time with it. I have a form that consists of questions that the user is needed to answer. It displays the question, a combobox where the User can select 'Yes' or 'No', and a textbox where the user can input their comments. What I would like to do it the following: if the user selects 'Yes' as an answer, I want the corresponding comments box to be required.

View 10 Replies View Related

Reports :: Character Limit For A Field In Report

Jul 16, 2015

In my table, I have a field for "notes" and have it set to long text. It works just fine and has all the text visible. When I create a report or a form from this table, it truncates the text in that field. It limits to the 254 characters of old. I am not sure how to fix this. I have tried setting the WillGrow to yes and it still does not work.

View 4 Replies View Related

Required Field

May 8, 2006

Hi. I want to have all my fields on my form to be required and so that the user cant close the form if they are empty (error message). In the table properties I have them set to Required an have tried putting in a validation rule of IS NOT NULL but it still dont work. any help appreciated. thanks

View 1 Replies View Related

Required Field

May 8, 2006

Hi. I want to have all my fields on my form to be required and so that the user cant close the form if they are empty (error message). In the table properties I have them set to Required an have tried putting in a validation rule of IS NOT NULL but it still dont work. any help appreciated. thanks

View 1 Replies View Related

Any Special Character That Will Allow To Store Date Field Blank?

Apr 30, 2013

I am building a database for a client who manufactures car parts. I have a table to store vehicle model. Each model has a date range of production. I have two build dates from and to. Both of these fields are setup as date fields on the table. I made both fields required with a mask for validation. In the "build date to" field if a car is still in production I need to leave the field blank. Is there any special character that will allow me to store a required field blank.

View 2 Replies View Related

Type Into A Field And First Character Becomes Upper Case Automatically

Oct 6, 2015

what do I do so that when I type into a field the first character becomes an Upper case automatically.

View 1 Replies View Related

2013 - Access Recapitalizes First Character Of Field Names

Feb 17, 2014

I have a very experienced colleague who has Access 2013 and has the following issue:

For some reason, Access keeps recapitalizing the first character of the field names when I save, close, and reopen the table in design view! I just spent several hours lower casing prefixes only to discover after I ran a routine to extract the field names that they had been recapitalized!

I've fiddled with turning off Autocorrect, but that seems to do nothing positive for me. How to turn this feature OFF?

View 7 Replies View Related

Required Field Dependant On Another

Sep 12, 2006

Quick question for you.
I know how to set a required field, but how do I edit two field so that they are dependant on each other? IE. How do I set my form to make FIELD1 required ONLY if FIELD2 is empty and vice versa?
Thanks very much and I hope I've explained myself correctly.

View 1 Replies View Related

Required Field... Simple

Jun 23, 2005

I can not for the life of me figure out how to make one field required. The name of the field on the form is Selectee. Can someone help?

View 2 Replies View Related

Required Field If Enabled.

Aug 7, 2006

After some suggestions, I have a form with combo boxes, the combo boxes are set to enabled "no", but become enabled by an after update command on another field.

The after update command works perfectly, however once enabled I need to ensure data is selected, as opposed to leaving blank.

Any ideas on the best/easiest way?

View 14 Replies View Related

Required Field In Form

Nov 3, 2004

I have a form that users update, but they continue to leave this one field blank and I have to go behind them to enter this date.

Field Name: OrigProcDt

This is a date field

I don't want this field to be a required field in the table, because it won't stop it anyways.

The record is already added by the clerical staff, the other users just update the record when it's time to.

The problem is that they need to enter a date in this field before leaving the record they are updating.

Any help would be appreciated.

View 2 Replies View Related

Required Field Allows Non-entry?

Aug 29, 2013

Some records that users are inputting through a form are coming back blank in fields that are required. how do I fix?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved