I use a form on an Access 2007 .accdb to paste pictures from the Clipboard to an OLE Object field.
I would like to add a command button to EITHER open the Windows Paint utility OR Windows Explorer to a specific folder in order to copy a desired picture to the Clipboard for pasting. I already have the code (below) to open an Excel spreadsheet using an API call but cannot figure out how to edit the code so it will work with MS Paint.
Private Sub cmdSpread_Click()
On Error GoTo Err_cmdSpread_Click
Dim oApp As Object
Dim oWbk As Object
Set oApp = CreateObject(“Excel.Application”)
Set oWbk = oApp.Workbooks.Open(“E:DocumentsDatabasesReports.xlsx”)
oApp.Visible = True
‘Only XL 97 supports UserControl Property
On Error Resume Next
oApp.UserControl = True
Exit_cmdSpread_Click:
Exit Sub
Err_cmdSpread_Click:
MsgBox Err.Description
Resume Exit_cmdSpread_Click
End Sub
… any ideas out there?