Are you using your form in datasheet view or single form view
-----------------------------I did say that I had a checkbox that I selected when I wished to save the data for another record.
Just remove the reference to Me.chkCopy, you do not really need it unless you wish to use it as I do.?
Is the chkbox actually called chkCopy?
so just use
Code:Me![Date_ID].DefaultValue = """" & Me![Date_ID].value & """"
and the same for any other field on the form.
Bob's solution is neater though. I got mine from googling a good few months back.
FWIW my form is a simple Access form. As I tab through the combo boxes and the rest of the fields, Access automatically adds a new blank record, which I then populate.
I had over 13000 records to enter, so was looking for the quickest way to do this, as previously I was using Ctrl & '![]()
Gasman, using your code, I can get Customer, Vendorname, and VendorInvoice to "copy" but NOT the PurchaseDate (which is a combo box rather than a list box or text field). Any thoughts?
Private Sub Command27_Click()
On Error GoTo Err1
DoCmd.GoToRecord , , acNewRec
Exit Sub
Err1:
'Description.SetFocus
' Me.Command27.Enabled = False
MsgBox (Err.Description)
End Sub
Gasman - YES that does work for the Purchase date now! No worries with the partdesc field as that would not ever be duplicated. You think there is a way to have a COPY? checkbox work so that the fields will ONLY duplicate after the clicking on the COPY? checkbox when a new record screen comes up AFTER you have just added a record?