Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 43
  • Last Modified:

Microsot Access 2010 show imge in form

Can anyone help me out I doing a Stationery database with photos are save in a folder on the C:\ drive.  what I am trying to do when someone pick item number red pen item number is 63987 then the photo will show up in the object frame, the photos are save as the item number as a bmp. can any one help
0
Darren Hughes
Asked:
Darren Hughes
  • 2
2 Solutions
 
crystal (strive4peace) - Microsoft MVP, AccessRemote Training and ProgrammingCommented:
use an Image control. Access Image Control
Store filename in Access and set ControlSource of the Image to:
="C:\path\" & [ImgFilename]

WHERE
"C:\path\" is the path to the files
ImgFilename is a field in the table with the name of the file, including file extension

 -- alternately, you can construct the filename from your item#
       ="C:\path\" & [ItemNumber_Fieldname] & ".bmp"

Open in new window

1
 
Eric ShermanAccountant/DeveloperCommented:
Also, where do they pick the Item Number from ... is this a listbox or combobox, etc.???

Then you would use the AfterUpdate Event of your control to change the path to your image in the Image Control on your Form Object.

ET
0
 
crystal (strive4peace) - Microsoft MVP, AccessRemote Training and ProgrammingCommented:
it is 2 weeks without a response from the poster. An answer was given.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now