ms access courses in london - applyfilter problem

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

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

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:

Choosing data types in Access

Not sure which data type to use for your Access fields? Here are some guidelines to help you choose a data type to assign to a field.

- The Text data type can accept up to 255 characters. For information that will be recorded in paragraphs, use Memo.

- Also use Text for numbers that aren't going to be used in calculations, e.g. phone numbers.

- Use the Currency data type for monetary amounts.

- Use Date/Time for dates.

- Most other numbers can use the Number data type, but the Field Size property may have to be altered.

- For fields that have only two alternatives (yes, no) use Yes/No data type. If there is likely to be a third entry option (e.g. maybe or don't know) use Text instead.

View all Access hints and tips


Server loaded in 0.12 secs.