Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Custom Ribbon disappears in Filter By Form

Posted on 2013-01-29
5
Medium Priority
?
1,205 Views
Last Modified: 2013-01-30
I have an Access application that I have finally converted over to use a custom Ribbon. I am a bit of a novice using the ribbon, but learning.  My problem is that when a user clicks on 'filter by form' from the ribbon, the form opens in filter mode BUT the ribbon disappears...no way to apply the filter.

The custom ribbon name is set as the form ribbon, but I'm not sure if I need to specify a different ribbon in VBA for the 'on filter' event or if I can specify the same filter or where exactly I go from here.
0
Comment
Question by:Jamie Roberts
  • 3
  • 2
5 Comments
 
LVL 85
ID: 38832350
Have you tried toggling the "Allow Full menus" and "Allow Default menus" off?
0
 

Author Comment

by:Jamie Roberts
ID: 38832408
The configuration I use is "Allow Full Menus" off, "Allow Default Shortcut Menus" off, and "Allow Built-in Toolbars" on, but I've tried all off, all on, etc. but it doesn't seem to make a difference.  I have a function 'FormSetUp'  that runs on Form Open and sets default values/textbox colors/etc. that also sets the ribbon if Access.Application >= "12.0", and I've gone through each form manually and set the ribbon...so:

1) The application Ribbon is set in Access Options-->Current Database
2) I have code that runs on form open that programatically sets the Ribbon
3) I manually set the Ribbon on each and every form.

But still, when I go to 'Filter By Form' the Ribbon vanishes.
0
 

Author Comment

by:Jamie Roberts
ID: 38836951
Attached is a sample file.  Just run this, open the form 'Tradecodes' then using the ribbon go to 'filter by form'.
Example.zip
0
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 2000 total points
ID: 38837127
I would suspect this is because Filter by Form is a builtin Access mechanism and therefore uses it's own internal settings (which would obviously include a ribbon specific to the task of filtering a form).

If you need advanced functionality like this, you'll have to 'roll your own' filter by form mechanism, and when doing this you can define your own ribbons and such.
0
 

Author Closing Comment

by:Jamie Roberts
ID: 38837242
Unfortunately, it appears that you're right.  FbF is apparently a builtin function, and it looks like Access takes over when you select FbF.  Looks like to use FbF with a custom ribbon I have to allow built-in toolbars and modify the built-in ribbon.  I customized the built-in ribbon and removed everything except the 'Home' tab and the 'Sort&Filter' items.  When I go to FbF, THIS ribbon appears (the built-in one I edited in the Options-->Customize Ribbon), so, now my user can at least click 'Toggle Filter'.
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question