transfering a whole row from access to VB.net - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

transfering a whole row from access to VB.net

Planem997Planem997 Posts: 1Member
the task is a EPOS system and ive got it that the barcode number (PLU) is sent to access and im trying to return the values of the whole row which PLU code corresponds to it, but it wont work. the data is sent into a textbox


If a = TextBox1.Text Then

rec = mdb.OpenRecordset("ITEMS", DAO.RecordsetTypeEnum.dbOpenTable)
rec.Index = "PrimaryKey"
rec.Seek("=", TextBox1.Text)
If rec.NoMatch() Then
MsgBox("Record Not Found")
Else
Return (rec.Fields("PLU", "MANUFACTURE", "ITEM", "ITEM NAME", "SIZE", "COLOUR", "PRICE").Value)
End If

End If


if any more info is need just ask

Thank you

Adam
Sign In or Register to comment.