Private Sub Combo1_Click()
Set rs2 = New ADODB.Recordset
rs2.Open "select * from Product where pcode='" & Combo1.Text & "'", cn, adOpenKeyset, adLockPessimistic
Set MSHFlexGrid1.DataSource = rs2
If rs2.RecordCount > 0 Then
Text17.Text = Date
Text4.Text = rs2!price
Text12.Enabled = VAL(rs2!pstock) > 0
End If
End Sub