Hi,
I have an Outlook form with a script behind it. The form facilitates standard Microsoft DataGrid. The following script code began to cause an error when the solution was set-up on Windows 7. In Windows XP there was no problem with this code.
Set grsCC = CreateObject("ADODB.Recordset")
grsCC.Fields.Append "f1", adVarChar, 255
grsCC.Fields.Append "f2", adVarChar, 255
For nI = LBound(arCmp) To UBound(arCmp)
grsCC.AddNew
grsCC.Fields("f1").Value = ...
grsCC.Fields("f2").Value = ...
Next
Set oGrid = oPage.Controls("CCGrid")
Set oGrid.DataSource = grsCC
oGrid.ColumnHeaders = True
The error message is completely empty.
Next peculiar thing is that the error pops up sometimes in the line with oGrid.DataSource and sometimes with oGrid.ColumnHeaders.
The solution was tested on several XP and W7 installations, always with the same result. Also in other cases the DataGrid is used, the error appears.
Does anyone have an idea, what the reason could be?
Cheers,
Marcin
I have an Outlook form with a script behind it. The form facilitates standard Microsoft DataGrid. The following script code began to cause an error when the solution was set-up on Windows 7. In Windows XP there was no problem with this code.
Set grsCC = CreateObject("ADODB.Recordset")
grsCC.Fields.Append "f1", adVarChar, 255
grsCC.Fields.Append "f2", adVarChar, 255
For nI = LBound(arCmp) To UBound(arCmp)
grsCC.AddNew
grsCC.Fields("f1").Value = ...
grsCC.Fields("f2").Value = ...
Next
Set oGrid = oPage.Controls("CCGrid")
Set oGrid.DataSource = grsCC
oGrid.ColumnHeaders = True
The error message is completely empty.

Next peculiar thing is that the error pops up sometimes in the line with oGrid.DataSource and sometimes with oGrid.ColumnHeaders.
The solution was tested on several XP and W7 installations, always with the same result. Also in other cases the DataGrid is used, the error appears.
Does anyone have an idea, what the reason could be?
Cheers,
Marcin