Re: INSERT INTO Query Question
- From: Rachel <Rachel@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 26 Sep 2008 14:05:01 -0700
Thank you.. adding the space after Email seemed to work, but when I run the
query I get the following response: "Microsoft Access can't append all the
records in the append query. Microsoft Access set 3 field(s) to Null due to a
type conversion failure and it didn't add 0 record(s) to the table due to key
violations, 0 record(s) due to lock violations, and 0 record(s) due to
validation rule violations.
When I tried adding brackets around all the field names, the changes won't
save, I get an error message that says number of query values and destination
fields are not the same, which doesn't make sense to me because they are, I
have the same number of fields in both tables.
--
RachelT
"fredg" wrote:
On Thu, 25 Sep 2008 13:36:07 -0700, Rachel wrote:.
Just from googling this, it appears this is a common error, but all of
the solutions suggested don't seem to solve my problem. I'm receiving
the following error message as I attempt to run an append query: The
INSERT INTO statement contains the following unknown field name:
'[Company]'. Make sure you have typed the name correctly, and try the
operation again. It seems common reasons for this error are
misspellings, extra spaces, use of a reserved word (which as far as I
can determine, Company is not) or using punctuation in the field name.
I have none of these issues, yet I continue to get the error message.
The field Company is in the same position in both tables. I'm new to
access, and don't have experience with code. I'd appreciate any help.
INSERT INTO [total list] ( [Company], [Address], [City], [State], [Zip],
[Carrier Rt], [Zip +4], [SIC], [SIC Description], [Web Address], [Duns
Number], [DSF Score], [Rec/Company], [Prim/SEC/SIC Flag], [Title], [Full
Name], [Phone], [Full Zip], [SIC Omit], [Current Customer], [Past Customer],
[Potential Customer], [Date Added], [Email] )
SELECT [prospect list].Company, [prospect list].Address, [prospect
list].City, [prospect list].State, [prospect list].Zip, [prospect
list].[Carrier Rt], [prospect list].[Zip +4], [prospect list].SIC, [prospect
list].[SIC Description], [prospect list].[Web Address], [prospect list].[Duns
Number], [prospect list].[DSF Score], [prospect list].[Rec/Company],
[prospect list].[Prim/SEC/SIC Flag], [prospect list].Title, [prospect
list].[Full Name], [prospect list].Phone, [prospect list].[Full Zip],
[prospect list].[SIC Omit], [prospect list].[Current Customer], [prospect
list].[Past Customer], [prospect list].[Potential Customer], [prospect
list].[Date Added], [prospect list].Email
FROM [prospect list];
Regarding:
[prospect list].[Potential Customer], [prospect
list].[Date Added], [prospect list].Email
FROM [prospect list];
The only thing that jumps out at me is you are missing a space between
[prospect list].Email
and
From [prospect list];
V
[prospect list].EmailFROM [prospect list];
This will cause an error, as Access is looking for a field named
EMailFrom.
It should read...
[prospect list].Email FROM [prospect list];
If there are additional errors...
1) Try placing brackets around all field names, not just the ones with
spaces.
2) It that doesn't help try removing everything except the [company]
field.
INSERT INTO [total list] ([Company]) SELECT [prospect list].[Company]
FROM [prospect list];
Run it.
Then if that does add the company to the table, add each new field,
one at a time, to the SQL.
Run it after each added field until it fails, at which point you will
have a place to look.
See what happens, but I do think placing that space after Email will
fix it.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
- References:
- INSERT INTO Query Question
- From: Rachel
- Re: INSERT INTO Query Question
- From: fredg
- Re: INSERT INTO Query Question
- From: Rachel
- Re: INSERT INTO Query Question
- From: fredg
- Re: INSERT INTO Query Question
- From: Rachel
- Re: INSERT INTO Query Question
- From: fredg
- INSERT INTO Query Question
- Prev by Date: Re: More than one value needed
- Next by Date: backend table not showing in linked table manager
- Previous by thread: Re: INSERT INTO Query Question
- Next by thread: Most recent date query
- Index(es):
Relevant Pages
|
Loading