Hi
I want my users to use a custom 'New Record' button. Consequently, I have allowadditions set to false on the form. Note that my form is opened in it's own workspace so that SQL transactions can be used
My custom button calls
Frm_WrkDAO.BeginTrans
DoCmd.GoToRecord , , acNewRec
Me![Edit_Status] = "!!New"
but the "!!!New" gets written into the first record in the recordset... not the new record? I guess there is some way to move to the bookmark of the record before updating the edit-status field?
Incidentally, because the BeginTrans has started, I can't use the
rs.addnew
rs![Edit_Status]="!!!New"
rs.update
method because the BeginTrans will not allow a requery of the form.
And I can't temporarily se tallowadditions to true cos' I only want them to create one record at a time.
Any advice please?
I want my users to use a custom 'New Record' button. Consequently, I have allowadditions set to false on the form. Note that my form is opened in it's own workspace so that SQL transactions can be used
My custom button calls
Frm_WrkDAO.BeginTrans
DoCmd.GoToRecord , , acNewRec
Me![Edit_Status] = "!!New"
but the "!!!New" gets written into the first record in the recordset... not the new record? I guess there is some way to move to the bookmark of the record before updating the edit-status field?
Incidentally, because the BeginTrans has started, I can't use the
rs.addnew
rs![Edit_Status]="!!!New"
rs.update
method because the BeginTrans will not allow a requery of the form.
And I can't temporarily se tallowadditions to true cos' I only want them to create one record at a time.
Any advice please?