Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2004
    Location
    California
    Posts
    502

    Unanswered: Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)

    An error (Method or data member not found) occurs with the "Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)" highlighted in yellow and the ".img1"
    highlighted in a dark red.

    Any ideas?

    Code:
    Option Compare Database
    
    Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
        Dim strPath As String
          Dim strFilename As String
            strPath = "C:\PresentationData\"
                
        On Error Resume Next
        strFilename = strPath & ListingID & "-1.jpeg"
        Me.img1.Picture = IIf(Dir(strFilename) <> "", strFilename, "c:\Test\Nopicture.jpeg")
        MsgBox "Me.img1"
        strFilename = strPath & ID & "-2.tif"
        Me.img2.Picture = IIf(Dir(strFilename) & "" <> "", strFilename, "c:\Test\Nopicture.jepg")
    
    End Sub
    Thanks Rick

  2. #2
    Join Date
    Mar 2009
    Posts
    5,442
    Provided Answers: 14
    Weird! I tested and it works here, provided img1 is an Image control.
    Have a nice day!

  3. #3
    Join Date
    Mar 2004
    Location
    California
    Posts
    502

    Image Control . . .

    What can an image control consist of?

    A picture frame, bound or unbound?

    What is the image control referring to in this instance?

    Thanks.

    Rick

  4. #4
    Join Date
    Mar 2009
    Posts
    5,442
    Provided Answers: 14
    Just an Image control (see attachment).
    Attached Thumbnails Attached Thumbnails Access_Toolbox.jpg  
    Have a nice day!

Posting Permissions

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