ScrmingWhisprs
I <3 Coffee Milk.
- Local time
- Today, 15:33
- Joined
- Jun 29, 2006
- Messages
- 156
For the library I work at, I designed a Shelflist Database. This keeps all of our items records that I export from our ILS (integrated library system). I have a form that I designed as a spine label generator. I have an unbound textbox where I scan a book barcode then an Append query takes that record from the Shelflist table to the Label Generator table, which is then listed in a listbox. Clicking on an item in the listbox will find the record on my form, which show more information at the bottom. Everyone should be familiar with it:
What I would like to do is when the barcode is scanned, that record is what shows at the bottom, as if I clicked on the first item in the list. Currently, it only displays the first record in the table until I click on a list item.
Please let me know if you have further questions.
Code:
Private Sub lboLG_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ID] = " & Str(Nz(Me![lboLG], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
What I would like to do is when the barcode is scanned, that record is what shows at the bottom, as if I clicked on the first item in the list. Currently, it only displays the first record in the table until I click on a list item.
Please let me know if you have further questions.