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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Populate a datagrid with code??

Status
Not open for further replies.

rtshort

IS-IT--Management
Feb 28, 2001
878
US
What is the best code to populate a DataGrid with code from a database and get the total(currency) from the last column?? Can someone give me a little sample code please? Every day above ground is a GOOD DAY!!!
 
No one can or no one will ????
Every day above ground is a GOOD DAY!!!
 
I don't know exactly what you want but if you want to show the data of a recordset in the datagrid you can do this by setting the datasource of the datagrid to the recordset.

Set datagrid.datasource = oRs

Good luck!

Jordi Reineman
 
I should have said the best way to populate a datagrid with code, not the best code. I'm trying to make an invoice from whatever is selected from a database and get a currency total in the last field. I'm also using ADO code with a reference and not an ADO Object.

Thx Every day above ground is a GOOD DAY!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top