Results 1 to 2 of 2
  1. #1
    OldGreg134 is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    1

    Link Pictures & Adding Browse Button

    Hello Everyone,



    My job has recently decided that I need to build a database of test pictures, I've read many forums on the link pictures / putting browse button as I gather it makes the database too large with attachments.

    My problem is I think I grasp the concept but I cant seem to use the code / Im not sure where im actually putting the code.

    e.g imgControl.Picture = CurrentProjectPath & subforldername & Me.ImageName

    Where do I put this ? does this go in the field or in a macro ?

    Also for the browse to button I have this

    Private Sub Explore_Click()
    ' Gets a filename from the filedialog control and puts it into
    the
    ' "Filename" textbox control.
    ' Be sure to rename the Common Dialog Control "cd1"

    On Error GoTo Err_Explore_Click
    ' Uncomment the next line to specify only a certain type of file
    ' to browse for (in your case jpeg files).
    'cd1.Filter = "Text Files|*.jpg"
    CD1.ShowOpen
    Filename.SetFocus
    Filename.Text = CD1.Filename

    Exit Sub

    Err_Explore_Click:
    MsgBox Err.Description
    Exit Sub

    When i try to put this into a button it doesnt work

    I know I sound like an idiot and thats because I am but I still have a job to do, so any help in this matter would be greatly appreciated.

    I've attached my amazing database for reference, you will see pictures attached, these were before I knew about linking and I want the links to work like the attachments.

    I'm sorry as I know this topic has been covered but I cannot seem to grasp it

    (using access 2007)
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,621
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Need help to link pictures in a form
    By stepwaec in forum Forms
    Replies: 2
    Last Post: 07-12-2011, 04:27 AM
  2. Replies: 11
    Last Post: 10-01-2010, 11:12 PM
  3. Error while trying to add delete link button.
    By islandboy in forum Access
    Replies: 3
    Last Post: 09-03-2009, 09:32 AM
  4. Adding filenames to pictures
    By Plumber in forum Forms
    Replies: 1
    Last Post: 02-11-2009, 10:34 PM
  5. Import/Link Pictures into a table
    By shm138 in forum Import/Export Data
    Replies: 3
    Last Post: 03-17-2006, 08:12 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums