access vba queries subforms
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 » Access VBA queries subforms

Access VBA queries subforms

resolvedResolved · Urgent Priority · Version 2003

replyReply Thu 6 Nov 2008, 11:54Delegate Anna said...

Anna has attended:
Access Intermediate course
Access Advanced course
Access VBA course

Access VBA queries subforms

Hi,

I have a subform which has no related fields to the form it has been placed on. I wish to filter the records in the subform when a user clicks a button. i have placed the following code on the onClick event of the control

DoCmd.ApplyFilter "queryName"

this works fine when the subform is opened as a form not a subform but will not work when it is a subform.

Please help

Anna

For upcoming training course dates see: Pricing & availability

replyReply Mon 10 Nov 2008, 17:28Trainer Jacob said...

RE: Access VBA queries subforms

Hi Anna

Thanks for your query. The main remit of the forum is to assist delegates with any topics they covered during their training.

Naturally we would love to get involved in every post but it is not always practical.

From what you have described, this looks more like a consultancy requirement and although once we have had a chance to look at your sample files the work may only take half an hour, it could also take longer.

We will let you know what we can do and the associted costs if you wish to progress this, just let us know.

Regards

Jacob

 

Please browse our web site to find out more about
microsoft/access/training/courses and other Microsoft training courses.

Access tip:

Action queries

Unlike select queries you cannot use action queries as a data source for the use with forms or reports,as they do not return a dataset that can be read.

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