C
croy
In Access 2002, what triggers a MakeTable query to create a
field as an Autonumber field?
field as an Autonumber field?
croy said:In Access 2002, what triggers a MakeTable query to create a
field as an Autonumber field?
Nothing. It can't be done. You can only create an Autonumber field in Design
View, or via a CREATE/ALTER TABLE DDL statement..
That means, if you need the resulting table to have an Autonumber field, you
have to create the table ahead of time and change the Make-table query to an
Append query.
croy said:Actually, what I want is for a Make-table query to *not*
generate an Autonumber field.
My Make-table query is failing with the error, "You tried to
assign the Null value to a variable that is not a Variant
data type." There is one field in the query that seems to
want to be an Autonumber field, but I can't figure out why.
According to KB 197587, the query is failing because it is
creating an Autonumber field and then trying to put a null
in it. The KB only gives a workaround--build the table
first, avoiding Autonumber fields, and then use an append
query. That's how I got interested in the subject of this
thread.
Nothing. It can't be done. You can only create an Autonumber field
in Design View, or via a CREATE/ALTER TABLE DDL statement..
That means, if you need the resulting table to have an Autonumber
field, you have to create the table ahead of time and change the
Make-table query to an Append query.
David-W-Fenton said:That's just not true. When you use a MakeTable query and one of the
source fields is an Autonumber, the resulting table that is made has
an Autonumber type, as well.