PDA

Click to See Complete Forum and Search --> : Populating DataGrid ?


Dillinger4
Sep 19th, 2000, 04:00 PM
Hi all
Im trying to add records to a data grid but im not
too sure how to use it.

Private Sub Form_Load()
Dim strSQL As String
Set db = OpenDatabase("C:\Path)
strSQL = "SELECT * FROM [Account Information]"
Set rs = db.OpenRecordset(strSQL)

With frmPreparetoPrint.DataGrid1
.DataSource rs![Account Name]
End With
End Sub
I looked through all of the properties and methods
but i dont see anything that would work like the additem method used for a listbox.

" A man ought to read as inclination leads him, for what he reads as a task will do him little good"
Johnson