A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Input mask not working for importing



 
 
Thread Tools Display Modes
  #1  
Old August 30th, 2005, 07:37 PM
Dion van Overdijk
external usenet poster
 
Posts: n/a
Default Input mask not working for importing

When creating an input mask for a field when using it, it does exactly what
it is suppose to do.
However when importing data from another file (csv or excel) the values in
this field that are correct but in the wrong case get rejected despite the
input mask which (when input occurs in datasheet view) changes the data to
correct case.
For instanceL;; makes capitals out of any input letter
However when importing 10 records with 5 lowercase and 5 uppercase values in
this field the 5 lowercase records are rejected.
Isn't this suppose to be the work of the input mask?

Anybody any idea?
Cheers dion
  #2  
Old August 30th, 2005, 10:08 PM
John Vinson
external usenet poster
 
Posts: n/a
Default

On Tue, 30 Aug 2005 11:37:01 -0700, "Dion van Overdijk"
wrote:

When creating an input mask for a field when using it, it does exactly what
it is suppose to do.
However when importing data from another file (csv or excel) the values in
this field that are correct but in the wrong case get rejected despite the
input mask which (when input occurs in datasheet view) changes the data to
correct case.
For instanceL;; makes capitals out of any input letter


No. It doesn't. It DISPLAYS the data as capitals; the data is stored
as typed.

However when importing 10 records with 5 lowercase and 5 uppercase values in
this field the 5 lowercase records are rejected.
Isn't this suppose to be the work of the input mask?


No, it's NOT the function of an input mask.

An input mask does two things: it constrains what the user is allowed
to type when manually entering data into the field; and it affects the
way data in a field is displayed, in a limited manner (not as powerful
as the Format property).

Access tables are inherently non-case sensitive, and they cannot be
made case sensitive. It sounds like you have a unique Index (such as a
Primary Key) on a field, and you're trying to import XYZZY and xyzzy
and Xyzzy as three different records. This will indeed fail; to
Access, these are three duplicate values, and will generate an error
if duplicates are not allowed in this field. The Input Mask has
absolutely NO relation to this; you could use a different mask, or no
mask at all, and the import would work exactly the same.

John W. Vinson[MVP]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Input Mask LeAnn General Discussion 0 July 20th, 2005 01:29 AM
Input Mask Errors N. Cotton General Discussion 2 June 22nd, 2005 01:54 PM
Input Mask for IP address Ryan Langton General Discussion 1 June 16th, 2005 09:37 PM
Prevent Blank Records being written. Need Help. Robert Nusz @ DPS Using Forms 4 December 29th, 2004 05:15 PM
UK Postcode Input Mask Negger General Discussion 4 August 18th, 2004 07:47 PM


All times are GMT +1. The time now is 09:19 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.