Y
Yappy
I have a combo box on it that searches for the record on my form. My problem
is that when I enter a new record using my command button to add a new
record, then try to search for another record on my form using my combo box,
I get the following message:
Error 2147352567
Update or CancelUpdate without AddNew or Edit
I have the following code for my combo box:
Private Sub cmbCoName_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[VendorNumber] = '" & Me![cmbCoName] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
This is what is highlighted in the code when I run the Debug:
Me.Bookmark = rs.Bookmark
When I close Access and reopen my database, only part of the new record I
entered is there.
How can I fix this? I am not good at VBA.
I am using Access 2003.
Thanks for your help.
is that when I enter a new record using my command button to add a new
record, then try to search for another record on my form using my combo box,
I get the following message:
Error 2147352567
Update or CancelUpdate without AddNew or Edit
I have the following code for my combo box:
Private Sub cmbCoName_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[VendorNumber] = '" & Me![cmbCoName] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
This is what is highlighted in the code when I run the Debug:
Me.Bookmark = rs.Bookmark
When I close Access and reopen my database, only part of the new record I
entered is there.
How can I fix this? I am not good at VBA.
I am using Access 2003.
Thanks for your help.