You are on page 1of 1

Private Sub subcategory_Click()

Dim subvalue As String


subvalue = subcategory.Text
categorydisplay.Clear

Dim con As New ADODB.Connection


con.Open "dsn=SHRADDHA"

sel = "select item_desc from item_master where CITY = '" & subvalue & "'"
Dim RS As New ADODB.Recordset
Set RS = con.Execute(sel)

While Not RS.EOF


categorydisplay.AddItem RS.Fields("item_desc")
RS.MoveNext
Wend

End Sub

Private Sub state_KeyPress(KeyAscii As Integer)


If KeyAscii = 27 Then
Unload Me
End If
End Sub

Private Sub SUBMIT_Click()

End Sub

Private Sub subcategory_KeyPress(KeyAscii As Integer)


If KeyAscii = 27 Then
Unload Me
End If
End Sub

You might also like