Buttons for Navigating Datasheet

madcats

Registered User.
Local time
Today, 12:10
Joined
Jun 24, 2005
Messages
36
I have made an access database for doing inventory at work. We have an inventory of approx. 700 items that need to be counted each month. I have a subform that is in datasheet view, it has Inventory IDs, product descriptions, UOMs, and a field to enter quantities. On the parent form are pictures and extra descriptions linked to each item in the subform.

The Inventory IDs all start with a 3 letter alpha code for which class of item they are PLU for plumbing, FAS for fasteners, ELD for electrical device, etc. There are about 15 different classes of these inventory items. The rest of the InvIDs are 4 digits: (PLU5453 or ELD1123)

We are using tablets to do the inventory counts, so to search for an item we can swipe through the datasheet to find the InvIDs we are looking for and then enter the quantity. After our initial inventory my supervisor asked if I could add buttons to jump to the first item in a particular class of item such as PLU0001. He showed me his address book in his phone as an example, how he can push a P button to bring him to the first name that starts with P.

I considered tabs for each class, but he wants to navigate to other items by just swiping also. I tried to make a Macro that would use Go To Record but was unable to make that work. I am somewhat an amateur at this, and not versed in Visual basic, usually do all that I need through Macros. Any help or ideas would be appreciated.
 
you need to use findfirst rather than gotorecord.

so in your main form you might have three buttons PLU, FAS and ELD

in the onclick event for say the PLU button you would put

mysubformcontrolname.form.recordset.FindFirst "ItemClass Like 'PLU*'"

Not sure without checking (which I don't have time for right now) but you might need to use recordsetclone rather than recordset and also bookmark - but google them to find out more
 

Users who are viewing this thread

Back
Top Bottom