Populate a datagrid in vb6 with values from a .dbf file
From: nupur_at_asterx.com ((nupur_at_asterx.com))
Date: 03/29/04
- Next message: Gitendra Proctor: "Re: Multiuser record lock query?"
- Previous message: Colin McLelland: "RE: How do I add an index to a FoxPro table"
- Next in thread: Colin McLelland: "RE: Populate a datagrid in vb6 with values from a .dbf file"
- Reply: Colin McLelland: "RE: Populate a datagrid in vb6 with values from a .dbf file"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 29 Mar 2004 15:39:07 -0800
Hi guys!
Ive never worked with dbase files before. So im having a bit of a worry populating the datagrid with records in the dbf file. here is my code..Im a access/sql person so im basically using the same technique to load the datagrid. Here's the code:
With ObjRS.Open
DataGrid1.ColumnHeaders(2) = "xxxx"
DataGrid1.Columns(0) = !Field1
DataGrid1.Columns(1) = !Field2
DataGrid1.Columns(2) = !Field3
End With
I have successfully made and opened a connection at this point and the values are in the recordset but i dont know how to access the recordset values so as to populate it in the datagrid in vb6!
Thanks for all the help...It WILL be appreciated!
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
- Next message: Gitendra Proctor: "Re: Multiuser record lock query?"
- Previous message: Colin McLelland: "RE: How do I add an index to a FoxPro table"
- Next in thread: Colin McLelland: "RE: Populate a datagrid in vb6 with values from a .dbf file"
- Reply: Colin McLelland: "RE: Populate a datagrid in vb6 with values from a .dbf file"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|