C
Corey-g via AccessMonster.com
Hi All,
I feel like I'm so close, but somethings missing. I have an unbound data
entry form, and when I try to add in the info (using a recordset from the
linked table) everything seems to work - except getting back the sequence
genereated PK. I have tried this:
set rs = currentdb.openrecordset("myTable")
with rs
.addnew
!field = form_frmReq.myControl
.update
.bookmark = .lastmodified
intLastID = !ThePK
end with
But I get an error saying the record is deleted... Anyone able to offer any
assistance with something like this?
Thanks,
Corey
I feel like I'm so close, but somethings missing. I have an unbound data
entry form, and when I try to add in the info (using a recordset from the
linked table) everything seems to work - except getting back the sequence
genereated PK. I have tried this:
set rs = currentdb.openrecordset("myTable")
with rs
.addnew
!field = form_frmReq.myControl
.update
.bookmark = .lastmodified
intLastID = !ThePK
end with
But I get an error saying the record is deleted... Anyone able to offer any
assistance with something like this?
Thanks,
Corey