Hi,
can I get some opinions, please, on what's the best way to make the record just added with .AddNew and .Update the current record? E.g.:
The idea is, after "???", I'd like the record I just added to be the current record so I can look up the Autonumber primary key and insert a record referencing it into another table.
Thanks for any insight you can provide.
TMTOWDI - it's not just for Perl any more
can I get some opinions, please, on what's the best way to make the record just added with .AddNew and .Update the current record? E.g.:
Code:
dim rst as DOA.Recordset
set rst=CurrentDB.OpenRecordset("tblExample")
rst.AddNew
rst.Fields("SomeRandomData") = "Trivial Fact"
rst.Update
???
[COLOR=green]'profit[/color]
The idea is, after "???", I'd like the record I just added to be the current record so I can look up the Autonumber primary key and insert a record referencing it into another table.
Thanks for any insight you can provide.
TMTOWDI - it's not just for Perl any more