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

Fill Dbgrid

Status
Not open for further replies.

ALSayegh

Programmer
Mar 27, 2001
25
0
0
KW
Hi
I wont to fill a dbgrid by code. I don’t wont to use data control.
I try this but didn’t work

rs.MoveLast
RCount = rs.RecordCount
rs.MoveFirst
For i = 0 To Rc
DBGrid1.Row = i
DBGrid1.Col = 1
Me.DBGrid1.Text = rs!myField

Next i
_____________________
Please help me

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top