Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Apr 2008
    Posts
    188
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I am trying to add a bunch of pictures to records.

    I have created a folder that I have all the pictures in. The database is in the same folder.

    I have created an unbound Image control.

    The name of the picture that should appear is in a field PictureTitle on the form.

    On the OnCurrent Event of the form I have the following code:

    Me.imgPicture.Picture = CurrentProject.Path & " \ " & Me.PictureTitle

    Will not work. I'm missing something. Any ideas.

    Thanks.

    Paul

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    There should be no spaces before and after the backslash:

    Me.imgPicture.Picture = CurrentProject.Path & "\" & Me.PictureTitle

Posting Permissions

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