Solved

Access 2007 filter/sort arrow in datasheet

Posted on 2009-03-31
9
462 Views
Last Modified: 2012-08-14
Hi Experts

In 2007 they have included a new function to the coloums in a datasheet. It's an arrow that can sort and filter. But I would like to remove it, permenatly. Can I do it with VBA code?
0
Comment
Question by:DCRAPACCESS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
9 Comments
 
LVL 28

Expert Comment

by:TextReport
ID: 24027437
This is controlled by the ShortCutMenu property of the form, set it to NO.
Cheers, Andrew
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 24027499
From what Andrew says, this faq confirms it http://accessjunkie.com/faq_53.aspx
Any reason why you would want to do it in vba?
0
 

Author Comment

by:DCRAPACCESS
ID: 24027544
What if the database are used in both 2003 and 2007. What will that do to the settings? That is why i would like to control it i VBA, to be sure that it's turn off in 2007.
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 65

Expert Comment

by:rockiroads
ID: 24027557
shortcut menu switched off in 2003 will merely do nothing when you right click on the form
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 24027562
in vba, you can try this to switch it off

me.shortcutmenu = false

0
 
LVL 65

Expert Comment

by:rockiroads
ID: 24027574
Mind you, that code works fine in 2003 but not in 2007
0
 
LVL 28

Accepted Solution

by:
TextReport earned 500 total points
ID: 24027593
The problem is that it will also disable the built-in Shortcut Menubar, the problem is by the time the OnOpen is executed you can turn off the Shortcut menu and it does disble the Shortcut menu but not the dropdown.
Cheers, Andrew

PS You could reverse the logic to see if turning it OFF by default and enabling in previous versions would work.
Private Sub Form_Open(Cancel As Integer)
    If SysCmd(acSysCmdAccessVer) >= "12.0" Then
       Me.ShortcutMenu = False
    End If
End Sub

Open in new window

0
 
LVL 28

Expert Comment

by:TextReport
ID: 24027612
Heres the reverse logic. Just though you may get a string comparison here so v9 would be after v10
Cheers, Andrew
Private Sub Form_Open(Cancel As Integer)
    If Val(SysCmd(acSysCmdAccessVer)) < 12 Then
       Me.ShortcutMenu = True
    End If
End Sub

Open in new window

0
 

Author Comment

by:DCRAPACCESS
ID: 24027623
Thanks! Just what I was looking for.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

759 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