Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error: Object Required???

Status
Not open for further replies.

Buca

Programmer
Feb 16, 2002
5
0
0
GB
I have a Flex Grid whcih will display the result of a query (hopefully at
somestage in the near future!)
Below is the code i have for attempting to initialise the size of the table
to to hold the results. However I'm getting an object required error on
this line, can anyone tell me why?


tblRecords.Cols = datinfo.Recordset.Fields.Count


Thanks
 
Either tblRecords or datinfo is not set to an object reference. Put a breakpoint on that line the see what is in both of thse object references.

If you do not have Option Explicit at the top of the module then put one there to catch misspellings. Generate Forms/Controls Resizing/Tabbing Class
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
hai,

Definitely you will have a problem with tblRecords.

Try to find your solution with tblrecords.


Brits.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top