Filtering problem

Dave_cha

Registered User.
Local time
Today, 09:02
Joined
Nov 11, 2002
Messages
119
Hi folks, I need your help.

I've attached a sample db illustrating the problem I'm experiencing in another db.
Essentially, I have a form bound to a table containing the core data. The form contains 2 list boxes (List1 & List2) both working of the same table. List1 allows the user to select a month/year option which filters List 2 against that selection accordingly. Selecting a record from this flitered list2 will then filter the form for that record and allow the user to edit one or more fields in the record.
To make things that bit smoother, I'm trying to have it so that when I change my selection in List1, the first entry in the newly filtered List2 will automatically be selected which will in turn cause the form to filter for this record. This is to ensure that the form fields are never blank and always tie into a seleced record in List2.

My attempt is causing a Runtime Error 2115..."The macro or function set to the BeforeUpdate or ValidationRule property for this field is preventing Microsoft Access from saving the data in the field". The error is being caused by the way I'm filtering the form but I can't see where I'm making the mistake.

Just wondering if someone could have a look at the attached file and see what I should be doing to get around this one?

Many thanks, Dave
 

Attachments

I regret that I do not have more time to play with it but it is sort of working as long as there is data for the criteria you select to filter. You should only allow the filter option to display data that already exists.
 
I've played around with this a bit more and almost have it working. For some strange reason however, when I select Jan 2004 or Jan 2005 in List1, I'm unable to select another record in List2. If either Feb 2004 or Feb 2005 are selected in List1 I have no problem and all works perfectly???

I've attached a revised copy of the earlier sample.

Thanks in advance for any help on this......Dave
 

Attachments

Has anyone any thoughts on this? I'm still going round in circles with it.
 

Users who are viewing this thread

Back
Top Bottom