Bound Image Control problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gilberto
    New Member
    • Aug 2007
    • 135

    Bound Image Control problem

    Hello

    Ive been trying to find a way to reduce database size (image related) and the only solution ive found (http://support.microso ft.com/default.aspx?sc id=kb;en-us;285820) only deals with continuous forms in order to create some kind of "image catalog".

    What im trying to find is a way to display the SWITCHBOARD FORM "background picture", which would be the same for ALL records, hoping i can reduce .mdb size (already ALL the pics are only LINKED).

    Im good with access but ive been learning fast i just cant figure out the code to use so that i can indicate WHICH exact image"path" to set as the property for image control.

    So far im using:
    Code:
    Private Sub Form_Load()
     On Error Resume Next
        Me![Image].Picture = Me![txtImageName]
        
    End Sub
    but i need to display ONLY ONE picture and with this code the picture changes to display the records (image paths) i have in the tblImage.

    Any ideas,
    Gilberto
  • MMcCarthy
    Recognized Expert MVP
    • Aug 2006
    • 14387

    #2
    Originally posted by Gilberto
    Hello

    Ive been trying to find a way to reduce database size (image related) and the only solution ive found (http://support.microso ft.com/default.aspx?sc id=kb;en-us;285820) only deals with continuous forms in order to create some kind of "image catalog".

    What im trying to find is a way to display the SWITCHBOARD FORM "background picture", which would be the same for ALL records, hoping i can reduce .mdb size (already ALL the pics are only LINKED).

    Im good with access but ive been learning fast i just cant figure out the code to use so that i can indicate WHICH exact image"path" to set as the property for image control.

    So far im using:
    Code:
    Private Sub Form_Load()
     On Error Resume Next
        Me![Image].Picture = Me![txtImageName]
        
    End Sub
    but i need to display ONLY ONE picture and with this code the picture changes to display the records (image paths) i have in the tblImage.

    Any ideas,
    Gilberto
    What is the data type of the txtImageName field?

    Comment

    • Gilberto
      New Member
      • Aug 2007
      • 135

      #3
      Originally posted by mmccarthy
      What is the data type of the txtImageName field?
      Its TEXT, and contains the image files paths.

      Comment

      • MMcCarthy
        Recognized Expert MVP
        • Aug 2006
        • 14387

        #4
        Originally posted by Gilberto
        Its TEXT, and contains the image files paths.
        OK I would advise changing the datatype to an OLE object and link the files.

        Comment

        • Gilberto
          New Member
          • Aug 2007
          • 135

          #5
          Originally posted by mmccarthy
          OK I would advise changing the datatype to an OLE object and link the files.
          Thanks ive done so and the size decreased around 15mb.

          Thanks a lot!!!

          Comment

          • MMcCarthy
            Recognized Expert MVP
            • Aug 2006
            • 14387

            #6
            Originally posted by Gilberto
            Thanks ive done so and the size decreased around 15mb.

            Thanks a lot!!!
            You're welcome.

            Comment

            Working...