T
TC
nate heaton said:I'm getting the following error attempting an insert:
Number of query values and destination fields are not the
same.
INSERT INTO table VALUES
('test','test','test','test','test','test')
I am trying to enter 6 values into a row with 7 fields.
However, 1 of those fields is a primary key autoNumber
data type. Therefore, I did not provide a value for it in
my insert statement.
When I remove the primary key field from my database I no
longer get the error. Can someone suggest what I am doing
wrong?
You need to name the fields to insert into:
INSERT INTO (f1, f2, ...) VALUES (v1, v2, ...)
Exclude the autonumber field.
Put the primary key back on!
HTH,
TC