By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,165 Members | 1,928 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,165 IT Pros & Developers. It's quick & easy.

auto ComboBox with MSHFlexGrid

Fary4u
100+
P: 273
Hi

it's my 1st post in VB,
i'm trying to get data from ComboBox & result with MSHFlexGrid
it's working fine there is no problem

they only thing i need is
Another ComboBox & ( result inside is 5 then ) generate auto
another ( 5 resulted ) ComboBoxs & get result with MSHFlexGrid.

Expand|Select|Wrap|Line Numbers
  1. Private Sub ComboBox_Click()
  2. rs.Open "select*from tblProduct where Supplier='" & cboSupplier.Text & "'", cn, 3, 3
  3. If Not (rs.BOF And rs.EOF) Then grdProduct.Enabled = True
  4. Set grdProduct.DataSource = rs
  5. Set rs = Nothing
  6. End Sub
  7.  
& MSHFlexGrid
Expand|Select|Wrap|Line Numbers
  1. Private Sub grdProduct_Click()
  2. i = grdProduct.Row
  3. With grdProduct
  4.     lblItemName.Caption = .TextMatrix(i, 2)
  5.     scAd = .TextMatrix(i, 1)
  6.     itmAd = .TextMatrix(i, 2)
  7. End With
  8. If Not scAd = "" Then
  9.     cmdAdd.Enabled = True
  10. End If
  11. End Sub
  12.  
everything should be automatic

is any body knows how to do it, thanks in advance for reading & reply
May 26 '09 #1
Share this Question
Share on Google+
2 Replies


Fary4u
100+
P: 273
Hi is any body know's how 2 fix this ?

or any thing like this i can do ?

from the dropdown it's just print result with MSHFlexGrid but get result from 1st field & make it's bold & then next field with continues with previous result ?

is any thing i can do ?

thnks in advance
May 26 '09 #2

smartchap
100+
P: 236
@Fary4u
Dear Fary4u
Actually I think your question is not clear and that's why not getting any reply. Please make it clear or post ur code with the problem u are getting.
Jun 15 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.