Displaying pictures in different path

  • Thread starter Afrosheen via AccessMonster.com
  • Start date
A

Afrosheen via AccessMonster.com

Thanks for reading this. I have a form that will display staff pictures. This
is the code and it works.

Me![imgEmpty].Picture = CurrentProject.Path & "\NCI Pictures\" & Me![IdPict].
Value

The thing I want to try and do is have the pictures displayed based on the
path and not the project. For example.

Me![imgEmpty].Picture = CurrentPath & "\NCI Pictures\" & Me![IdPict].Value

Something like that.

In other words if I'm working on two different databases and they both have
pictures I need a common location for them so the form can display them.

Thanks for your help.
 
D

Douglas J. Steele

What do you mean by "the path and not the project"? Can't you just use

Me![imgEmpty].Picture = "E:\Folder\NCI Pictures\" & Me![IdPict].Value

or create constant that gives you the location?
 

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

Similar Threads


Top