parkerjallen
Registered User.
- Local time
- Today, 14:34
- Joined
- Nov 13, 2012
- Messages
- 18
I'm trying to add a button that will copy a bunch of the fields and have it ready for the next record, as they will be doing a lot of the same tests in a row. Here is the code I have.
The button doesn't even do anything. What terribly simple thing have I missed?
Code:
Private Sub CopyButton_Click()
Dim vfpn As String
Dim vcon1 As String
Dim vcon2 As String
Dim vmode As String
Set vfpn = Nz(Me.FullPartNumber, "")
Set vcon1 = Nz(Me.pCon1, "")
Set vcon2 = Nz(Me.pCon2, "")
Set vmode = Nz(Me.pMode, "")
DoCmd.GoToRecord , , acLast
Me.FullPartNumber = Nz(vfpn, "")
Me.pCon1 = Nz(vcon1, "")
Me.pCon2 = Nz(vcon2, "")
Me.pMode = Nz(vmode, "")
End Sub
The button doesn't even do anything. What terribly simple thing have I missed?