G
Guest
I have a combo box that is querying the table [vehicles] if the vin is not
found in the current form it creates a new record. The question I have is how
do I get it to paste the original vin from the combo box to the vin cell on
the form? Everyting is working but I can't get the copy and paste function to
work.
This is the code I am using now.
Private Sub Search_Vehicles_AfterUpdate()
Dim strCriteria As String
strCriteria = "[vin] = '" & Search_Vehicles & "'"
Me.RecordsetClone.FindFirst (strCriteria)
If Me.RecordsetClone.NoMatch Then
DoCmd.GoToRecord , , acNewRec
Else
Me.Bookmark = Me.RecordsetClone.Bookmark
End If
End Sub
found in the current form it creates a new record. The question I have is how
do I get it to paste the original vin from the combo box to the vin cell on
the form? Everyting is working but I can't get the copy and paste function to
work.
This is the code I am using now.
Private Sub Search_Vehicles_AfterUpdate()
Dim strCriteria As String
strCriteria = "[vin] = '" & Search_Vehicles & "'"
Me.RecordsetClone.FindFirst (strCriteria)
If Me.RecordsetClone.NoMatch Then
DoCmd.GoToRecord , , acNewRec
Else
Me.Bookmark = Me.RecordsetClone.Bookmark
End If
End Sub