Solved

Running a public form function (via shortcut menu)

Posted on 2016-10-22
2
36 Views
Last Modified: 2016-10-22
I have a Listbox within a form that occasionally needs to give the ability to switch row-source.  I currently have a toggle button on this form that switches it, but having the extra button on the form is ugly (especially since it will hardly be used).  I wanted to add a shortcut menu to this Listbox (easy enough), but I want it to be able to call the function within the form.  Usually, I'd put the function in an external module, but time is against me and it's not essential.

Will it be technically ok to do this (even though I know it's not best-practice)?
0
Comment
Question by:Andy Brown
[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
2 Comments
 
LVL 50

Accepted Solution

by:
Gustav Brock earned 500 total points
ID: 41855128
Not sure what you mean. It is certainly OK - indeed preferred - to put a function specific to form within the code-behind-module of the form rather than in an external module.

/gustav
0
 

Author Closing Comment

by:Andy Brown
ID: 41855129
Oh - for some reason, I thought it was a bad idea......

In that case, I'll get cracking - thanks Gustav (yet again).
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

726 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