473,405 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

How to get rid of sort/filter arrow in column header on Datasheets in MS2007?

167 100+
Working on converting some old MS2000 access applications to MS2007. I have many datasheets in the application and I have noticed that on all of them the column headers have a down arrow with sort/filter options. This arrow is covering up some of the letters on the column descriptions. I have built-in listboxes on my forms that allow the users to select the criteria they need so I do not need the drop down sort/filters on the columns. My users will be using 'Runtime Access' to run the application. I was told that it does not show the drop down arrow on the column header, but when I ran the access app in Runtime, the arrows are present. Is there some way to turn these off?
Thanks!!
Jun 12 '09 #1
7 30440
puppydogbuddy
1,923 Expert 1GB
You can do it if you don't need the shortcut menu feature. Here is how thanks to Jeff Conrad aka the Access Junkie:

If you don't want to display these arrows, here's a quick workaround to disable them. Open the datasheet form in Design View and then open the Property Sheet for the form. Look for the property called Shortcut Menu on the Other or All tab of the Property Sheet. Change that property to No, save the form, and now switch back to Datasheet View. Access now removes the arrows from the top of the column headers.
Jun 17 '09 #2
ncsthbell
167 100+
Thanks... this is exactly what I needed!
Jun 23 '09 #3
ncsthbell
167 100+
I have lots of forms in my application if I have to do this for each form, would be time consuming. I see on the 'startup' options for the application there is a setting "allow default shortcut menus", I removed the checkbox from this option and the down arrows still how on the forms. I thought that this option handle it at an application level so I would not have to do each form.
Jun 24 '09 #4
puppydogbuddy
1,923 Expert 1GB
Unfortunately, you have to turn "ALL" shortcut menus off, and "Default" is close, but not quite the same as "ALL".

You should be able to get around having to manually open and change each form by using a vba code routine to loop the open forms, and change the property setting for the shortcut menus. In doing so, you need to keep the following in mind:

The forms collection only contains <<<open>>> forms, so you will need to code a routine that works around that limitation and opens each form in design view, changes the property setting, and then closes that form and moves to the next form. It is my understanding that in order to "persist" the changes to the form property settings, the change has to be made in design view.
Jun 25 '09 #5
puppydogbuddy
1,923 Expert 1GB
In Access 2000 or newer, you can use something like this:
Expand|Select|Wrap|Line Numbers
  1. Dim oForm As AccessObject
  2. Dim oDatabase As Object
  3. Dim strFrm As String
  4.  
  5. Set oDatabase = Application.CurrentProject
  6. For Each oForm In oDatabase.AllForms
  7.             strFrm = oForm.Name
  8.             DoCmd.OpenForm strFrm, acDesign
  9.             XXXX Code to change Shortcut menu property goes here
  10.             DoCmd.Close acForm, strFrm, acSaveYes
  11. Next oForm
  12.  
  13. oDatabase.Close
  14. Set oDatabase = Nothing
Jun 25 '09 #6
Thanks a lot to puppydogbuddy : I add that you can also keep shortcut menu by changing the property of the form on its Open event. Basically, you have to :
- turn off Shortcutmenu in Property menu of the form
- add the code below :
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Open(Cancel As Integer)
  2.     Me.ShortcutMenu = True
  3. End Sub
Then the form in datasheetview mode will open without builtin sort/filter in headers and still keep its shortcut menus : magic, isn't it ?!!!

To my mind, this workaround is very important because builtin sort/filter functionnality is not reliable at all with numerous datas (>20000 records) : it is very slow (and doesn't show hourglass !) and it bugs with complex filters ('OR' condition for example).
Jan 6 '12 #7
bamage
1
SAMIFROMFRANCE your input was actually exactly what I needed, as I wanted to still have filter options available on the right-click menu but didn't want the user to see the column pulldown options.

@SamiFromFrance
Mar 11 '18 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Cliff Benoist | last post by:
I have a case where I would like to add a textbox to a datagrid column header. I would like to use a user control or custom control to create a reusable control. The textbox will filter the...
0
by: VMI | last post by:
My Windows datagrid has two columns: one with the data that the user will see (col_X) and the other one (a hidden one: col_sort) that'll be used to sort data. When a user clicks on col_X's column...
2
by: Gas | last post by:
Hi, I am just wondering is there a way to add an up or down arrow in the column header of a list view control to indicate that the row are sort by that column? Gas
3
by: Steve | last post by:
I have windows form with ListView control. The ListView control has few columns which user can sort by clicking the column header. I want the column header have the small triangle indicator of...
3
by: DigHazuse | last post by:
relative noob. i'm trying to get/display the column Header name that the user clicks to sort on the DataGrid. I know that i could take the e.SortExpression and spin through the Columns on the...
3
by: djohnson | last post by:
My listview will sort but I would like the column headers to contain up or down arrows to indicate the sort direction. I have an image on the column header, but I'm having a heck of a time...
0
by: Gary Brown | last post by:
Hi, It is common to place a little triangle in a column header to indicate both which column is sorted and the direction of sort. Setting an image (icon) almost works but displays the icon...
0
by: DBLWizard | last post by:
I posted a message on the topic earlier and thought I had it solved but in testing have found problems. I have a Templated GridView control on a webpage bound to an ObjectDataSource. There are 3...
0
by: clarkp73 | last post by:
Hi In VBA I populate an unbound subform (datasheet view) via a recordset that can be changed using filters selected by the user. The only problem I am having is that due to the unbound nature of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.