i'm using this for my list box:
Private Sub lstStock_Click( )
'
rsMyRS.FindFirs t "Stockcode= " & Str(lstStock.It emData(lstStock .ListIndex))
txtCode.Text = rsMyRS!Stockcod e
optVegi.Value = rsMyRS!Vegibox
And this for my Form load:
Do While Not rsMyRS.EOF
lstStock.AddIte m rsMyRS!Stockcod e
lstStock.ItemDa ta(lstStock.New Index) = rsMyRS!Orderedo n
rsMyRS.MoveNext
Loop
The Italic line is the one where i get the type mismatch problem.
i'v stated text in Access, and text on vb so where am i getting it wrong. Please help.
ThAnK YoU
Private Sub lstStock_Click( )
'
rsMyRS.FindFirs t "Stockcode= " & Str(lstStock.It emData(lstStock .ListIndex))
txtCode.Text = rsMyRS!Stockcod e
optVegi.Value = rsMyRS!Vegibox
And this for my Form load:
Do While Not rsMyRS.EOF
lstStock.AddIte m rsMyRS!Stockcod e
lstStock.ItemDa ta(lstStock.New Index) = rsMyRS!Orderedo n
rsMyRS.MoveNext
Loop
The Italic line is the one where i get the type mismatch problem.
i'v stated text in Access, and text on vb so where am i getting it wrong. Please help.
ThAnK YoU
Comment