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!

How to get data from a database to a MSHFlexGrid?

Status
Not open for further replies.

rtshort

IS-IT--Management
Feb 28, 2001
878
US
Does anyone know how to get data from a database to a MSHFlexGrid. I know the ".AddItem" method and "vbTab", but I need to know how to get the record I need from the database(specific record). I don't know how to get the click event to point to the right row. Anyone?? Every day above ground is a GOOD DAY!!!
 
How are you determining what record you want to select from the database? Are you clicking on a row in a grid? Entering the data into a text box? etc...
 
I'm trying to make a form with images on it. When an image is clicked, I want the corresponding record to go into the grid.

I've got the basics of it I think:

Row = "col1" & vbTab & "col2" & vbTab & "col3"
flexGrid.AddItem Row

I need to know how to get the Row Value to correspond with the record in the database without adding each item in the database seperately with code. Maybe make a module or something. I'm new at this so be gentle.:)


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

Part and Inventory Search

Sponsor

Back
Top