Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create a button to automatically browse to replace file in tabl

Status
Not open for further replies.

durwood

Technical User
May 14, 2001
3
US
I have a table that has an OLE object in one field. That file is a picture. I would like to create a command button on my form that will browse to a directory and when the file is selected automatically put it in this field for the current record.
 
Do you mean that you're storing a file path and name in the field?
 
You can use the standard Windows Picture Insertion dialog box by the following code:

ObjectName.SetFocus
DoCmd.RunCommand acCmdInsertObject

Hope this helps...B-) ljprodev@yahoo.com
Professional Development
MS Access Applications
 
Yes, I can browse for the picture file while entering data in the table, but I would like to simplify this process for the end user.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top