M
Mario Krsnic
Hello everybody,
I have two related tables:
1) Tbl_categories with fields category(Text), id (Counter and primary key),
UserID (long)
2) Problems with fields Problem (Text), id (Long), UserID (long)
the field id form the second table in in relation 1:n with the primary key
id from the first table.
Every neuer User should get all records from this two tables so that all
records get his UserID.
I tried so:
insert into Tbl_categories (category, userID) select " & _
" category," & NewUserID & " from Tbl_categories where userID=" & 0
So I get the categories with the new UserID. But how to import the related
recordsets from the second table?
Thank you!
Mario
I have two related tables:
1) Tbl_categories with fields category(Text), id (Counter and primary key),
UserID (long)
2) Problems with fields Problem (Text), id (Long), UserID (long)
the field id form the second table in in relation 1:n with the primary key
id from the first table.
Every neuer User should get all records from this two tables so that all
records get his UserID.
I tried so:
insert into Tbl_categories (category, userID) select " & _
" category," & NewUserID & " from Tbl_categories where userID=" & 0
So I get the categories with the new UserID. But how to import the related
recordsets from the second table?
Thank you!
Mario