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

Select Item Row from MSHFlexGrid?

Status
Not open for further replies.

rtshort

IS-IT--Management
Feb 28, 2001
878
US
I have a form with a MSHFlexGrid (frmInvoice) and I am calling items from a SQL Database to load another MSHFlexGrid (frmChoose). The frmChoose needs to pull up parts from a database. Most parts have 2 choices(OEM and ReMan) When I use the SQL Statement I only get one part and not the other.

"Select * from Parts Where PartName = 'WaterPump'"

I'm sure I have to include the "i" counter but can't quite seem to figure it out.

Also I need to be able to select a row from the frmChoose and add it to the frmInvoice.

I call PartName because even though it's not the primary key, I have taken time to make sure all PartNames are unique. Every day above ground is a GOOD DAY!!!
 
Use .Rows = to increase # of Rows.
use .row = and .col = to set current row and focus.
use .textmatrix to get or set a cell with changing focus.
Code:
TextMatrix Property
Returns or sets the text contents of an arbitrary cell.
Syntax
object.TextMatrix(rowindex, colindex) [=string]
 
Thanks for taking the time to answer John. Gives me a start in that direction. Every day above ground is a GOOD DAY!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top