I'm working my first relatively complex Infopath application. This website has been a great help as I've been working with Infopath everyday for the last 2 months.
The system lets users create new work requests. These requests are then processed by other users who later update the requests when they are completed. This is all done in one form with 3 different views (status of all open requests, new request form, detail of a specific request).
The 'view' that shows the status of all open requests uses a repeating table to display a few details of each request. I then insert an extra column and insert a button (switches to the 'detail view') that would allow a user to see all of the details of that specific request.
I had this working until I switched to web services and C#. It was setup with Infopath talking directly to the database and JScript.
C# WS
Query Method
VB.Net DB
List Method (this is the method that actually pulls all the details of a
request and populates the 'repeating table')
Each request has a unique number (reqID) associated with it. I'm trying to pull this parameter from the repeating table, query the rest of the details and switch to the 'detailed' view.
An example of what the repeating table looks like with different data:

C# Infopath Detail - OnClick Code My problem is here.
Infopath gives the following error when I try to use the 'detail' button.
I get a System.NullReferenceException
Object reference not set to an instance of an object.
at reqForm_2_0.reqForm_2_0.mainOpen_OnClick(DocActionEvent e)
at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)
Thanks,
-C