GetObject not working

M

Marguerite

I am trying to open a file reference that a user types into an Outlook form.
I have created a label that is unbound, but the caption identifies the type
of file to open. But when the click fires, the error says unknown error.
What am I doing wrong? Here is my code:

Sub lblPDS_Click()

strFilePath = Item.GetInspector.ModifiedFormPages _
("Request").Controls("tb_pds").value
strOneFile = strFilePath
set appobj = getobject(strOneFile)
appobj.Visible = true
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top