PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

DataGrid-statements cause error in Windows 7

 
 
New Member
Join Date: May 2010
Posts: 1
 
      26th May 2010
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
intermittent #error in unbound txt box with IIf statements quaddawg via AccessMonster.com Microsoft Access Forms 5 19th Jul 2006 07:27 AM
Getting rid of error messages while using IF statements theseandavis@gmail.com Microsoft Excel Misc 4 3rd May 2006 10:02 PM
reusable datagrid, using viewstate items as for SQL statements / problems with life cycle TB Microsoft ASP .NET 12 27th Oct 2005 05:38 PM
operator statements, shorting when reusing one of the statements? KR Microsoft Excel Programming 1 4th Aug 2005 06:20 PM
nested if statements error juhlott Microsoft Excel Worksheet Functions 4 8th Jul 2004 04:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:40 AM.