this is what i want to do but it seems my code doesn't do what i wanted.
when i select an item in cbo_Item i want to loop the corresponding Item_Stock into cbo_QTY where all the numbers below Item_Stock is shown in cbo_QTY...here is my code...
Private Sub loop_QTY()
Dim qty As Integer
sqlstring = "SELECT Item_Stock from tbl_Products as '" & qty & "' WHERE Item_Name = '" & cbo_Items.Text & "' "
con.Open()
Dim i As Integer
For i = 0 To Val(qty)
cbo_QTY.Text = i + 1
Next
End Sub
did i miss anything..please help...