The table only has two field an autonumber and a name. they enter the name
and access assigned the autonumber. than they press a cmd button to go to a
different form I want to kick a append query off to take the autonumber with
the name and add it to a table as a starting point for them.
Create a VIEW (Access Query object comprising a non-parameterized
SELECT query) which joins the two tables: e.g. (the following is
ANSI-92 Query Mode syntax):
CREATE VIEW View1 AS
SELECT T1.autonumber_col, T1.col2, T2.colX, T2.colY
FROM Table1 AS T1
INNER JOIN Table2 AS T2
ON T1.col1 = T2.colX;
(or manually create a Query object, omitting the first "CREATE VIEW"
line of course).
Now, instead of INSERTing to the two base tables, INSERT to the VIEW,
omitting the autonumber column and respective column in the other
table (colX) to allow them to be auto-generated e.g.
INSERT INTO View1 (col2, colY) VALUES ('Steve', 'Bill');
Jamie.
--