hey me again. trying to get data from a recordset and whack it all into text boxes... this using a value entered into a text box. Im not sure what the [start] was in the prodrec.move (this_bits_ok, [start]) part of the code so i left it out. is this the reason? what does the start do? I assume it states where in the record to start reading from?
ProdRec.Open "SELECT * FROM Product WHERE ([Ean 8/13] = '" & Criteria & "')", Cnct, adOpenKeyset, adLockReadOnly
If Not (ProdRec.BOF And ProdRec.EOF) Then
ProdRec.Move (Val(Criteria))
While Not ProdRec.EOF
form1.txtEAN.Text = ProdRec.Fields("Ean 8/13"
.Value
form1.txtTitle.Text = ProdRec.Fields("Title"
.Value
form1.txtTitle.Refresh
form1.txtPrice.Text = ProdRec.Fields("Price"
.Value
ProdRec.MoveNext
Wend
End If
TIA
~*Gwar3k1*~
"To the pressure, everything's just like: an illusion. I'll be losing you before long..."
ProdRec.Open "SELECT * FROM Product WHERE ([Ean 8/13] = '" & Criteria & "')", Cnct, adOpenKeyset, adLockReadOnly
If Not (ProdRec.BOF And ProdRec.EOF) Then
ProdRec.Move (Val(Criteria))
While Not ProdRec.EOF
form1.txtEAN.Text = ProdRec.Fields("Ean 8/13"
form1.txtTitle.Text = ProdRec.Fields("Title"
form1.txtTitle.Refresh
form1.txtPrice.Text = ProdRec.Fields("Price"
ProdRec.MoveNext
Wend
End If
TIA
~*Gwar3k1*~
"To the pressure, everything's just like: an illusion. I'll be losing you before long..."