Problem loading picture (Need help)

  • Thread starter Russ via AccessMonster.com
  • Start date
R

Russ via AccessMonster.com

Having a problem trying to get this correct...
I have a folder called ContactPictures in the same path as the database.

Option Compare Database
Dim cnn As ADODB.Connection
Dim dbname As String
Dim Pic As String

Private Sub Form_AfterUpdate()
Pic = Me.txtPicFullName ' example "Pic1.jpeg" or Pic2.jpeg
Me![ImageFrame].Picture = getpath(dbname) & "\ContactPictures\Pic"
End Sub
 
R

Russ via AccessMonster.com

Thanks everyone!

this worked..
Me![ImageFrame].Picture = getpath(dbname) & "ContactPictures\" & Pic & ""
Russ

try this, a db I found on a site. It solved the similar problem I had with
images

http://www.paulwest.me.uk/accessstuff/image.zip

Paul
Having a problem trying to get this correct...
I have a folder called ContactPictures in the same path as the database.
[quoted text clipped - 8 lines]
Me![ImageFrame].Picture = getpath(dbname) & "\ContactPictures\Pic"
End Sub
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Top