I'm trying to set up an inventory form so that - when I click a command btn (to add a new record to this purchase order), it will add a new record with some fields being the same as the previous record. I'd rather do this in VB than a macro.
I did a similar thing for an inventory database that I wrote. Here is the code...
Private Sub btnlastenry_Click()
DoCmd.GoToRecord , , acNewRec
Dim rec As Recordset
Set rec = CurrentDb.OpenRecordset("outgoingorders", dbOpenDynaset)
rec.MoveLast
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.