Results 1 to 4 of 4

Thread: this has to be something simple...

  1. #1
    Guest

    Post

    code:

    Private Sub cmdsave_Click()
    Dim reply As String
    Data1.ReadOnly = False
    Data2.ReadOnly = False
    Data3.ReadOnly = False
    Data1.Recordset.AddNew
    Data2.Recordset.AddNew
    Data3.Recordset.AddNew
    reply = MsgBox("Do you want to Submit another Problem", vbYesNo)
    If reply = vbYes Then
    clearfields
    Else
    MsgBox "Thank You."
    Unload Me
    End If
    End Sub


    the error msg I'm getting is saying that data1.recordset.addnew is a read only file? Yet in the properties box it is set to REad only=False. What gives?

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    What is the recordsource for your data control? It sounds like you have a recordset, which is not updatable.

    ------------------

    Serge

    Senior Programmer Analyst
    [email protected]
    [email protected]
    ICQ#: 51055819

  3. #3
    Guest

    Post

    It is a query in Access97 called Comments. That is what the recordsource is set to in the properties box.

  4. #4
    Addicted Member
    Join Date
    Oct 1999
    Location
    Oporto, Portugal
    Posts
    134

    Post

    What is the error number and description it gives ??


    ------------------
    Jorge Ledo
    [email protected]
    Portugal

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width