Error in form while using dwgthumbnail.ocx

Discussion in 'AutoCAD' started by tito.salazar, Aug 15, 2006.

  1. tito.salazar

    tito.salazar Guest

    I am trying to use "dwgthumbnail.ocx" to show a thumbnail of an AutoCAD
    drawing in a form.

    The form has a text box (DwgFilename) with a valid drawing name and
    path.
    When I open the form I get a thumbnail preview of the drawing for the
    first
    record but as soon as I go to the next record I get the following
    error:

    Update or CancelUpdate without AddNew or Edit.

    Here is the code:

    Private Sub DwgThumbnail2_Updated(Code As Integer)
    On Error Resume Next
    With DwgThumbnail2
    .DwgFileName = [DwgFilename]
    .Refresh
    End With
    End Sub

    Any suggestions?

    Thanks in advance
    /Tito Salazar
     
    tito.salazar, Aug 15, 2006
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.