embed custom control value in url

  • Thread starter Thread starter George
  • Start date Start date
G

George

we are trying to embed a value within a url that will open
the objBrowser control. there is a button that when
clicked is supposed to open the objWebBrowser from the
value pulled from the custom field. here's the code that
is opening the browser but not embedding the correct value
from the custom field.

Sub qtPage_Click()
Item.GetInspector.ModifiedFormPages
("Resources").objWebBrowser_
..Navigate("http://home/file.asp?R=
{{Companies.CustomField1}}")
End Sub
 
Thanks Sue.
used your unbound example successfully:

Set objPage = Item.GetInspector.ModifiedFormPages("My
Page")
Set objControl = objPage.Controls("TextBox1")
MyValue = objControl.Value

-----Original Message-----
You didn't say whether you're working with a bound or
unbound control. If bound, you need to know the name of
the Outlook property that it's bound to. If unbound, you
need the page where the control resides. See
http://www.outlookcode.com/d/propsyntax.htm for details on
the correct syntax in both cases.
In the meantime, any time you need to use a complex
string value in an application, I strongly recommend that
you build the string separately, so you can easily debug
it with a MsgBox statement, and then use it with whatever
method is appropriate.
 
Back
Top