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

Saving Data to Access DB from MSHFlexGrid

Status
Not open for further replies.

TondoBoy

Programmer
Mar 22, 2001
31
US
I'll appreciate some help. I populated my grid from Access DB and now after some data changes I want to save it to the DB. The grid is not bound. What is the simplest code I can use to do this? A sample code would be helpful..
 
You wants for MsHflexgrid. But I do it with MsFlexGrid. It may be helpful to you.
rs.open "TableName"
for i=1 to msgrid.rows
rs.addnew
rs!id=msgrid.texmatrix(i,0)
rs!name=msgrid.texmatrix(i,1)
rs!address=msgrid.texmatrix(i,2)
rs.update
next
rs.close
I think you get the help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top