I have a form that is built upon query, when the user insert the request field access will provide the form with the matching names found this DB has duplicate name and the form will provide all the duplicate. now some of the duplicate has an updatable data like address I want the user to be able to duplicate the selected record. right now im running the following
Code:
Private Sub Toggle97_Click()
On Error GoTo Err_Command97_Click
DoCmd.GoToRecord , , acNewRec
With Me.RecordsetClone
Me.[Last name] = ![Last name]
Me.[first name] = ![first name]
Me.[middle name] = ![middle name]
Me.[date of birth] = ![date of birth]
Me.Address = !Address
Me.City = !City
Me.Zip = !Zip
Me.[phone number] = ![phone number]
Me.COUNTY = !COUNTY
Me.GCITY = !GCITY
Me.GState = !GState
Me.GZIP = !GZIP
Me.GPHONE = !GPHONE
End With
Exit_Command97_Click:
Exit Sub
Err_Command97_Click:
MsgBox Err.Description
Resume Exit_Command97_Click
this will duplicate but it always duplicate the first record found in the search and not the one the user selected.
Any ideas will be welcome.
Thanks