ms access courses in london - applyfilter problem
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

resolvedResolved · Low Priority · Version Standard

replyReply Sun 22 Apr 2007, 21:52Delegate Robin said...

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

For upcoming training course dates see: Pricing & availability

replyReply Wed 25 Apr 2007, 11:42Trainer Rich said...

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 microsofttraining.net 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

replyReply Wed 25 Apr 2007, 13:12Delegate Robin said...

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:

Design View in Relationship window

Your in the Relationship window and changes are required to be made to a Table's design.

Rather than exiting the Relationship window, if you perform a right-mouse click on the table, it opens that table up in Design view

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard