Set Textbox to Input Parameter

G

GFR

Hi. I am relatively new to Infopath 2007. I have been trying to find
the answer to this for a while, but can't seem to figure it out.

I have an infopath form that accepts two input parameters (Product and
Category). I would like to set these two values to textboxes that
exist in my form at form Load. Below is the code I have so far.

Public Sub FormEvents_Loading(ByVal sender As Object, ByVal e As
LoadingEventArgs)
Dim prod As String = e.InputParameters("product")
Dim cat As String = e.InputParameters("category")

End Sub

I would like to know how to access the textboxes in code. For
example...txtCategory.text = cat

Any help would be appreciated.

Thanks
glenn
 

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