how to put image into table

R

Ruel via AccessMonster.com

With your table open right mouse click the field that you want the picture to
be loaded. Then left mouse click "Insert Object..." A pop up form will open
and then select "Create From File" and then click "Browse". A Browse window
will open for you to find and select the picture file. Then you will return
to the first form to confirm the path of the file and click "OK".

Ruel
 
R

Ruel via AccessMonster.com

After reading your post again I realized you wanted to create code.
Here is what I came up with:

Private Sub CommandBrowse_Click()
Me.Photo.SetFocus 'Set Focus to the Field Named "Photo".
SendKeys "%{I}", True 'Send Keystroke ALT I for Insert
SendKeys "{O}", True 'Send Keystroke O for Object
End Sub

This will work from an OnClick Event Procedure for a CommandButton.

Ruel
 
Top