T
tpalmer00
Hi,
I want to create a button in Access that will allow users to browse for and
insert a photo. I'm using the code below:
Private Sub Photo1_Click()
Photo.SetFocus
DoCmd.RunCommand acCmdInsertObject
This works fine except for when you hit the cancel button. I get a run-time
error of '2501'. Can anyone suggest an alternative?
Thanks,
Trish
Private Sub Photo1_Click()
Photo.SetFocus
DoCmd.RunCommand acCmdInsertObject
I want to create a button in Access that will allow users to browse for and
insert a photo. I'm using the code below:
Private Sub Photo1_Click()
Photo.SetFocus
DoCmd.RunCommand acCmdInsertObject
This works fine except for when you hit the cancel button. I get a run-time
error of '2501'. Can anyone suggest an alternative?
Thanks,
Trish
Private Sub Photo1_Click()
Photo.SetFocus
DoCmd.RunCommand acCmdInsertObject