The INSERT INTO statement contains the following unknown field name (1 Viewer)

trab

Registered User.
Local time
Today, 17:52
Joined
Feb 10, 2014
Messages
19
I have a linked table, and i've created a local table by copying (structure) only.

When I come to append records from the linked table that satisfy a given date range, I get the INSERT INTO error message.

Any thoughts?
 

theDBguy

I’m here to help
Staff member
Local time
Today, 09:52
Joined
Oct 29, 2018
Messages
21,447
Hi. Can you post the SQL statement and the actual error message (screenshot)?
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 11:52
Joined
Feb 28, 2001
Messages
27,126
Invariably, this error tells you that the field you named does not exist in the place you said (or implied) that it does.

Check for spelling first. Check for having odd syntax like quoting characters where they don't belong. When you copied the linked table to the local table, you created duplicate field names. So if you didn't properly qualify the fields with their table names, Access might be confused as to where you want to put things.
 

Guus2005

AWF VIP
Local time
Today, 18:52
Joined
Jun 26, 2007
Messages
2,645
Yes, i have a few thoughts.
- the linked table is in fact an excel spreadsheet and therefor is read-only
- you are inserting the same record twice.
- use don't use # to specify dates
- the dates are in a wrong format mm/dd/yyyy or yyyy/dd/mm or any other wrong notation
- you don't have write permission
- you are using ` where you should be using '
- your query is using a join where you are trying to match a string to a boolean field
-

I could go on but i don't want to. In short, there isn't enough data to answer your question and perhaps the answer is already there. Can't tell.
 

Users who are viewing this thread

Top Bottom