Advertisement

09.05.2007 at 06:27AM PDT, ID: 22807820
[x]
Attachment Details

MS Access Run-time error 3020, Update or Cancel Update without Addnew or Edit

Asked by jumpy262000 in Access Coding/Macros, Microsoft Access Database, Access Forms

Tags: , , , ,

I've been working on this piece of code and can't figure out why I'm receiving Run-time error '3020' Update or Cancel Update without AddNew or Edit. I'm just trying to located a record id and allow the user to update the recordset.

'On Error GoTo Err_cmdFindRefId_Click
Dim intRefId As Long
Dim strBookMark As String

intRefId = InputBox("Enter Reference ID to Locate", "Reference ID Search")
strBookMark = Me.Bookmark

    'Locate and display records based on Chargeback record number
    With Me.RecordsetClone
        .FindFirst "[ChargeBackRecordId] = " & intRefId
        If .NoMatch Then
            MsgBox "That Reference ID was not Located, " & vbCrLf & "Please try your entry again>" _
                , vbExclamation, "Reference Id Search"
            Me.cmdFind.SetFocus
        Else
            Me.Bookmark = .Bookmark
            Me.IssueDate.SetFocus
        End If
    End With
Exit_cmdFindRefId_Click:
    Exit Sub

Err_cmdFindRefId_Click:
    MsgBox Err.Description
    Resume Exit_cmdFindRefId_Click
   
End SubStart Free Trial
 
 
[+][-]09.05.2007 at 06:43AM PDT, ID: 19832217

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.05.2007 at 06:46AM PDT, ID: 19832254

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2007 at 06:53AM PDT, ID: 19832325

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.05.2007 at 06:59AM PDT, ID: 19832381

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2007 at 07:03AM PDT, ID: 19832413

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Coding/Macros, Microsoft Access Database, Access Forms
Tags: 3020, error, access, update, cancel
Sign Up Now!
Solution Provided By: peter57r
Participating Experts: 1
Solution Grade: A
 
 
[+][-]09.05.2007 at 07:17AM PDT, ID: 19832533

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2007 at 07:35AM PDT, ID: 19832714

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.05.2007 at 08:04AM PDT, ID: 19833018

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2007 at 08:14AM PDT, ID: 19833121

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628