E
Edward G
Hi all,
I have a database I use for a racquet stringing business. I work mostly off
one main form called Customers that has several tabbed pages. On the first
page is a list box with customer names. Selecting a name brings up the
customers data on the other pages where I have subforms with Stringing
history, Regrip history, Personal info, etc. The code for the After Update
event on the list box is:
Private Sub List13_AfterUpdate()
' Find the record that matches the control.
Me.RecordsetClone.FindFirst "[CustId] = '" & Me![List13] & "'"
Me.Bookmark = Me.RecordsetClone.Bookmark
End Sub
The problem I run into is this: Let's say I have selected the name Roger
Petersman on my list box. Now I go to a tabbed page called Stringing
Records. There is a subform there with a bunch of records spanning several
years with a bunch of different racquet names, strings, dates, serial
numbers, etc that Roger has used. Let's say I decide to filter on one
particular serial number. I filter by selection and viola! , only records
for that serial number.
But.....then I click the remove filter button and now my subform shows me
records for Tom Allen because his is the first name in my Customer table.
And even though Roger Petersman's name is still selected in my list box, all
the information on the various tabbed pages is now for Tom Allen.
Now mind you, all I have to do is click on Rogers name on the list box on
the first page to straighten things out, but it would be nice if this thing
operated smoothly.
Any ideas?
Thanks,
Edward J
I have a database I use for a racquet stringing business. I work mostly off
one main form called Customers that has several tabbed pages. On the first
page is a list box with customer names. Selecting a name brings up the
customers data on the other pages where I have subforms with Stringing
history, Regrip history, Personal info, etc. The code for the After Update
event on the list box is:
Private Sub List13_AfterUpdate()
' Find the record that matches the control.
Me.RecordsetClone.FindFirst "[CustId] = '" & Me![List13] & "'"
Me.Bookmark = Me.RecordsetClone.Bookmark
End Sub
The problem I run into is this: Let's say I have selected the name Roger
Petersman on my list box. Now I go to a tabbed page called Stringing
Records. There is a subform there with a bunch of records spanning several
years with a bunch of different racquet names, strings, dates, serial
numbers, etc that Roger has used. Let's say I decide to filter on one
particular serial number. I filter by selection and viola! , only records
for that serial number.
But.....then I click the remove filter button and now my subform shows me
records for Tom Allen because his is the first name in my Customer table.
And even though Roger Petersman's name is still selected in my list box, all
the information on the various tabbed pages is now for Tom Allen.
Now mind you, all I have to do is click on Rogers name on the list box on
the first page to straighten things out, but it would be nice if this thing
operated smoothly.
Any ideas?
Thanks,
Edward J