Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 10th, 2006, 03:03 PM
Authorized User
 
Join Date: Sep 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Call Filter By Form

I am trying to create a search form...without recreating the wheel. What I want to do is when the search form loads...it turns on the FilterByForm. Once they have inputed all data then click a search button that will call the ApplyFilter.

I cant figure out how to call the filter by form...any suggestions?

Thank you,
John Williams
__________________
Thank you,
John Williams
 
Old November 14th, 2006, 08:44 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

I am not sure what you are trying to do? What do you want to search and how do you want the results output?


mmcdonal
 
Old November 15th, 2006, 10:24 AM
Authorized User
 
Join Date: Sep 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have two forms:
1) Input form where the user will enter in all their information
2) Search form (identical to input form minus the ability to input data)
- they have to be able to search by every field in the form
- I am going to also call a report from this form
- Result Output will just be pulling the data into the form. When they find the record they want they will click print and it will print it in a report.

I did figure out how to call a form in filter by form view by having
docmd.RunCommand acCmdFilterByForm in the form load. However, the catch to this view is all buttons are disabled. My solution to this is to make a custom toolbar that will allow them to apply filter, search through the matching records, and call the report.

Do you have a better solution that I can try? Is it possible to enable buttons in FilterByForm View?

I have also ran into another issue...is there a way to disable the scroll wheel from scrolling through all records in MS Access 2003 controls? or Do I have to write an activex.dll?

Thank you,
John Williams
 
Old November 15th, 2006, 03:10 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

For the scrolling issue, open the form properties, select the Other tab, and set Cycle to Current Record.

I am not sure what you need on the form issue.

mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
filter a sub form ahying Access VBA 1 June 29th, 2006 04:27 AM
how to parse filter from a form to a main form flyfish Access 1 February 1st, 2005 05:36 AM
Multiple filter on a form chimp Access VBA 0 September 9th, 2004 02:59 AM
Filter subform from main form DBoulos Access VBA 2 October 30th, 2003 12:20 PM
problem with filter form keyvan Classic ASP Databases 1 June 29th, 2003 05:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.