473,473 Members | 1,469 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Shortcut menu action syntax - on a control

I have successfully added shortcut menus to Forms but I am now having
difficulty when I attach a shortcut menu to a text control. I have a
shortcut menu entitled 'CalendarEntries' with one command whose 'On
action' is =showAbsence().

The control is on a Pop up Form called 'Calendar' that has a function:
Public Function showAbsence()
......
End Function

The Shortcut Menu Bar property of the control is set to
'CalendarEntries'. The Shortcut Menu Bar property of the Form is not
set.

When I right click the control I get the error:
"The expression you entered has a function name that Microsoft Access
can't find"

If I change the On action to =Forms![Calendar].viewAbsence() the
correct function is activated but when it reaches its End statement, I
get the error:
"The expression you entered contains invalid syntax"

If I change it to =Forms![Calendar].viewAbsence ,it runs correctly
but three times!!

I have just noticed that the first version of the 'On action' (the one
I expected to work) does in fact work if I remove the Pop Up property
from the Form.

So how do I set up a shortcut menu on a control on a Pop up Form?
Oct 17 '08 #1
0 1706

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Benjamin | last post by:
I have a very strange problem. I have developed a .NET solution. To set up user clients I have also included a "Deployment Project" in the solution: Using "File System Editor | User's Program...
1
by: deko | last post by:
I've found that the "Remove Filter/Sort" selection in the Shortcut menu (displayed on right click) produces ugly, untrappable errors, even though "Allow Filters" is set to No in the subform. ...
4
by: Salad | last post by:
A97. If you set a forms properties to ShortcutMenu = No, the entire form is disabled from displaying a shortcut menu. If you set the property to Yes, all controls have a shortcut menu. I have...
2
by: JMCN | last post by:
hi i'm having a problem with the customize a shortcut menu. i read the ms office assistance: customize a shortcut menu/delete a command or add to a shortcut menu and followed the simple...
0
by: Marcel | last post by:
Hi, the application I am writing has a MainMenu and a DataGrid (UltraGrid). Now I have to edit the text of each cell in this grid. So far so good. All works fine in editmode but if I press a...
1
by: stinehelferw | last post by:
I need a right-click menu on a form list control with combobox controls. I used View->Toolbars->Customize to create a toolbar. I added ComboBox through commands tab. I set properties to Popup...
2
by: ApexData | last post by:
Hi I am using the Shortcut Menu Bar property of a control to specify a Custom popupmenu that displays when the right-click of the mouse is used. Can I place some kind of command in this...
2
by: Jim Devenish | last post by:
I have set up shortcut menus on many form successfully. However, for the first time, I am trying to set one up on a subform. In the 'On Action:' when customising the menu item I have:...
3
by: KennethLundin | last post by:
Hi, i'm developing a solution in VS9/CSharp. Now I'm constructing a deployment project for my appliation (thick, database driven, winforms, standard, good old type of application). During...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.