Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

ms access courses in london - applyfilter problem

Forum home » Delegate support and help forum » Microsoft Access Training and help » ms access courses in london - Applyfilter problem

ms access courses in london - Applyfilter problem

ResolvedVersion Standard

Robin has attended:
Access Intermediate course
Access Advanced course

Applyfilter problem

I have a query that simply looks at a yes/no field and if my continuous form shows it "ticked" it filters those records out. It also sorts by date at the same time.

I can run this as a form filter from the access menus easily enough by "loading from query" but here is the problem:

I have an option control with 2 choices on the form, one to run the filter query and one to reset it to all records.

Here is the line for "option 1"

DoCmd.ApplyFilter "qdfcurrmessages"

The fact that I am telling it use qdfcurrmessages seems to be ignored.
It just runs whatever the last filter that was used via the access menus.

A simple solution will let me sleep!

Thanks

Robin

RE: Applyfilter problem

Hi Robin,

We'd really need to look at your database to fully understand your problem. Even then, it would take quite a while to track down the problem and come up with a simple solution, and may require organising a consultancy day for you.

If you like, send the file to forum AT stl-training.co.uk and we can decide whether a consultancy day is required (no obligation).

Or, you may come up with a solution on your own after attending our Access VBA course and learn even more at the same time!

Regards, Rich

RE: Applyfilter problem


Hi Rich

It's ok, I've solved it.

It works fine once I just had everthing on the one form.

Previously, I had a subform and despite the fact that the option control was on the subform it didn't work.

Robin


Access tip:

Copy a Previous Record's Values to a New Record

If you often enter the same value in one field of a table, there are two methods to save re-typing the data.

1. Use Ctrl+' (apostrophe) to repeat the value input in the previous record.

2. Change the field's DefaultValue property in Design View to the most commonly used value.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.13 secs.