473,397 Members | 2,116 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,397 software developers and data experts.

Exasperating, baffling behavior in A2K!

When I try to run the query below, I get a warning that says Access
could not insert ANY of the records due to Validation rule violations.
Access gives me NO hint WHICH fields are violating the rules or WHAT
rules are being violated!

Furthermore, I re-checked EVERY field in the target table and there
ARE NO VALIDATION RULES SET on ANY field! There is no conflict
between source and target data types on any field and NON of the
target fields are set to "Required".

The source table is called "LastNSFile" and the target table is called
"tblLeads_TEMP".

Please note that this exact same query works fine with OTHER data from
other sources. I even tried deleting the "Notes" field insert and got
the same result.

Here is the Access SQL code for the insert:

INSERT INTO tblLeads_TEMP ( [First Name], State, EMail, Phone_Day,
Phone_Eve, Fax, TimeZone, User1, User2, User3, User4, Fax_Note,
CallNotes )
SELECT LastNSFile.Name, LastNSFile.State, LastNSFile.Email,
LastNSFile.Phone1, LastNSFile.Phone2, LastNSFile.Phone3,
LastNSFile.TZ, LastNSFile.DebtAmount, LastNSFile.[#Cards],
LastNSFile.[#CardsinCollection], LastNSFile.TYPE, LastNSFile.p3ext,
"Notes: " & [LastNSFile]![Notes] & ", DOR: " & [LastNSFile]![DOR] & ",
TOR: " & [LastNSFile]![TOR] & ", BTTC: " & [LastNSFile]![BTTC] AS
Expr1
FROM LastNSFile;

Does anyone have a clue why this is happening?

Thanks for all responses.
Nov 12 '05 #1
1 1350
<WillWeGetOurFreedomBack> wrote in message
news:dl********************************@4ax.com...
When I try to run the query below, I get a warning that says Access
could not insert ANY of the records due to Validation rule violations.
Access gives me NO hint WHICH fields are violating the rules or WHAT
rules are being violated!

Furthermore, I re-checked EVERY field in the target table and there
ARE NO VALIDATION RULES SET on ANY field! There is no conflict
between source and target data types on any field and NON of the
target fields are set to "Required".

The source table is called "LastNSFile" and the target table is called
"tblLeads_TEMP".

Please note that this exact same query works fine with OTHER data from
other sources. I even tried deleting the "Notes" field insert and got
the same result.

Here is the Access SQL code for the insert:

INSERT INTO tblLeads_TEMP ( [First Name], State, EMail, Phone_Day,
Phone_Eve, Fax, TimeZone, User1, User2, User3, User4, Fax_Note,
CallNotes )
SELECT LastNSFile.Name, LastNSFile.State, LastNSFile.Email,
LastNSFile.Phone1, LastNSFile.Phone2, LastNSFile.Phone3,
LastNSFile.TZ, LastNSFile.DebtAmount, LastNSFile.[#Cards],
LastNSFile.[#CardsinCollection], LastNSFile.TYPE, LastNSFile.p3ext,
"Notes: " & [LastNSFile]![Notes] & ", DOR: " & [LastNSFile]![DOR] & ",
TOR: " & [LastNSFile]![TOR] & ", BTTC: " & [LastNSFile]![BTTC] AS
Expr1
FROM LastNSFile;

Does anyone have a clue why this is happening?

Thanks for all responses.


My first guess is that the problem is caused by one or more text fields in
tblLeads_TEMP not allowing zero length strings. There is a distinction
between a null value and a zero-length string (although both of them 'just
look blank' in the table).
If you do not care about this distinction, change the design to allow
zero-length strings and see if your append query now works.

PS - Don't forget to take a backup before taking advice from strangers.

Fletcher
Nov 12 '05 #2

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

Similar topics

3
by: Terry Bell | last post by:
I have some code that adds entries to the "Module Compiled" popup menu. Works fine in A97. You can open a module, right click, and the new entries are there for you to click. I converted it to...
14
by: wolftor | last post by:
1) Is there a free runtime version of Access available that is more recent than the one for Access 2000? 2) If I create an application (MDE) in A2K, will it run on all later versions of Access?...
10
by: Arno R | last post by:
Hi all Yesterday I found a strange corruption-issue that I can't solve yet or actually point my finger at. I converted an A97 app to A2k. I have done this often enough so I didn't expect trouble...
3
by: Dalan | last post by:
At first I was not certain what could cause Access 97 from displaying most jpeg images, but not all. After further testing, it seemed that all original images of less than 275 pixels per inch or...
1
by: Oliver | last post by:
I have a database developed fully in Access 2000 which I make available to users of both Access 97 and Access 2000. I use a split front end/back end arrangement; with the BE in Access 97. When I...
2
by: givlerj | last post by:
I need some help. Here is a little background, I support a MS Access 2k DB (SQL Server 2k backend) that has courses and students. The problem form lets the user pick a course from a drop down and...
4
by: Steve | last post by:
I'm currently running into a problem, and I have no idea what to make of it. I have a class with nested clases and static properties that I'm using to store configuration information using a...
3
by: robert d via AccessMonster.com | last post by:
I develop my application on my desktop which has Access 2002 (default file format of A2K). My client uses A2K so I have installed A2K on my laptop. Recently when developing in A2002 my front end...
0
by: Paul Brady | last post by:
I volunteer at a youth ministry agency and help them with their student database. They have two computers, both running Windows XP. Both have Office 2002 installed without Access, except that...
3
by: Scotty | last post by:
I'm a C++ novice and need help figuring out some odd behavior I've encountered. Here's the situation: I create a class and have its constructor store a random number in a private "number"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.