I am getting an
An unhandled exception of type 'System.NullReferenceException' occurred in test.exe
Additional information: Object reference not set to an instance of an object.
error on this line :
g1.MoveFirst()
That is below this line :
g1 = GetRecordsetCmd(g1, strSQL, 2)
Where do I need to start looking at to solve???????

This the GetRecordset function line - would it have anything to do with?
Public Function GetRecordsetCmd(ByRef recRecordset As ADODB.Recordset, ByRef strQuery As String, ByRef intCmdType As Short) As Object
An unhandled exception of type 'System.NullReferenceException' occurred in test.exe
Additional information: Object reference not set to an instance of an object.
error on this line :
g1.MoveFirst()
That is below this line :
g1 = GetRecordsetCmd(g1, strSQL, 2)
Where do I need to start looking at to solve???????
This the GetRecordset function line - would it have anything to do with?
Public Function GetRecordsetCmd(ByRef recRecordset As ADODB.Recordset, ByRef strQuery As String, ByRef intCmdType As Short) As Object
Last edited: