DataGrid-statements cause error in Windows 7

Joined
May 26, 2010
Messages
1
Reaction score
0
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.
w7error.png

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
 

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