In a form how I can I trap for the action that a user opens the built in
'find dialog'? I would like to trap for it and before the dialog shows up, I
would like to execute some code, and after that I would like to bring up the
'find dialog'.
thanks,
john 6 2193
If you mean the Find dialog box and you have a button on your form that opens
Find, then you can simply edit the code behind the On Click of that button
and add your code before the DoCmd that opens the Find.
John wrote:
>In a form how I can I trap for the action that a user opens the built in 'find dialog'? I would like to trap for it and before the dialog shows up, I would like to execute some code, and after that I would like to bring up the 'find dialog'. thanks, john
--
Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/For...ccess/200706/1
I do mean that dialog box but if the user presses Ctrl-F or chooses it from
the menu, how would I trap for that?
john
"jahoobob via AccessMonster.com" <u12179@uweschreef in bericht
news:73c1c50a84f66@uwe...
If you mean the Find dialog box and you have a button on your form that
opens
Find, then you can simply edit the code behind the On Click of that button
and add your code before the DoCmd that opens the Find.
John wrote:
>>In a form how I can I trap for the action that a user opens the built in 'find dialog'? I would like to trap for it and before the dialog shows up, I would like to execute some code, and after that I would like to bring up the 'find dialog'. thanks, john
--
Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/For...ccess/200706/1
Build a macro named AutoKeys. (The name is important.)
In the Macros Names column (View menu if you don't see it), use ^F (Shift 6
to get the caret character.) In the Action column, use RunCode to call your
function. At the end of your code, use RunCommand acCmdFind to open the
dialog.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"John" <jo@hn.comwrote in message news:f4**********@textnews.wanadoo.nl...
>I do mean that dialog box but if the user presses Ctrl-F or chooses it from the menu, how would I trap for that?
john
"jahoobob via AccessMonster.com" <u12179@uweschreef in bericht
news:73c1c50a84f66@uwe...
>If you mean the Find dialog box and you have a button on your form that opens Find, then you can simply edit the code behind the On Click of that button and add your code before the DoCmd that opens the Find.
John wrote:
>>>In a form how I can I trap for the action that a user opens the built in 'find dialog'? I would like to trap for it and before the dialog shows up, I would like to execute some code, and after that I would like to bring up the 'find dialog'. thanks, john
Thanks, that works for Ctr-F. Is it also possible to trap for:
- choosing Find from the menu, and
- choosing Find from the binoculars button in the toolbar?
john
"Allen Browne" <Al*********@SeeSig.Invalidschreef in bericht
news:46***********************@per-qv1-newsreader-01.iinet.net.au...
Build a macro named AutoKeys. (The name is important.)
In the Macros Names column (View menu if you don't see it), use ^F (Shift
6 to get the caret character.) In the Action column, use RunCode to call
your function. At the end of your code, use RunCommand acCmdFind to open
the dialog.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"John" <jo@hn.comwrote in message
news:f4**********@textnews.wanadoo.nl...
>>I do mean that dialog box but if the user presses Ctrl-F or chooses it from the menu, how would I trap for that? john
"jahoobob via AccessMonster.com" <u12179@uweschreef in bericht news:73c1c50a84f66@uwe...
>>If you mean the Find dialog box and you have a button on your form that opens Find, then you can simply edit the code behind the On Click of that button and add your code before the DoCmd that opens the Find.
John wrote: In a form how I can I trap for the action that a user opens the built in 'find dialog'? I would like to trap for it and before the dialog shows up, I would like to execute some code, and after that I would like to bring up the 'find dialog'. thanks, john
So you need a custom menu and toolbar?
Easy enough to create a new menu/toobar, and copy (Ctrl+Drag) the items you
want from the existing menu, but use your own buttons for the Find items.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"John" <jo@hn.comwrote in message news:f4**********@textnews.wanadoo.nl...
Thanks, that works for Ctr-F. Is it also possible to trap for:
- choosing Find from the menu, and
- choosing Find from the binoculars button in the toolbar?
john
"Allen Browne" <Al*********@SeeSig.Invalidschreef in bericht
news:46***********************@per-qv1-newsreader-01.iinet.net.au...
>Build a macro named AutoKeys. (The name is important.)
In the Macros Names column (View menu if you don't see it), use ^F (Shift 6 to get the caret character.) In the Action column, use RunCode to call your function. At the end of your code, use RunCommand acCmdFind to open the dialog.
"John" <jo@hn.comwrote in message news:f4**********@textnews.wanadoo.nl...
>>>I do mean that dialog box but if the user presses Ctrl-F or chooses it from the menu, how would I trap for that? john
"jahoobob via AccessMonster.com" <u12179@uweschreef in bericht news:73c1c50a84f66@uwe... If you mean the Find dialog box and you have a button on your form that opens Find, then you can simply edit the code behind the On Click of that button and add your code before the DoCmd that opens the Find.
John wrote: >In a form how I can I trap for the action that a user opens the built >in >'find dialog'? I would like to trap for it and before the dialog shows >up, I >would like to execute some code, and after that I would like to bring >up the >'find dialog'. >thanks, >john
Got it.
john
"Allen Browne" <Al*********@SeeSig.Invalidschreef in bericht
news:46***********************@per-qv1-newsreader-01.iinet.net.au...
So you need a custom menu and toolbar?
Easy enough to create a new menu/toobar, and copy (Ctrl+Drag) the items
you want from the existing menu, but use your own buttons for the Find
items.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"John" <jo@hn.comwrote in message
news:f4**********@textnews.wanadoo.nl...
>Thanks, that works for Ctr-F. Is it also possible to trap for: - choosing Find from the menu, and - choosing Find from the binoculars button in the toolbar? john
"Allen Browne" <Al*********@SeeSig.Invalidschreef in bericht news:46***********************@per-qv1-newsreader-01.iinet.net.au...
>>Build a macro named AutoKeys. (The name is important.)
In the Macros Names column (View menu if you don't see it), use ^F (Shift 6 to get the caret character.) In the Action column, use RunCode to call your function. At the end of your code, use RunCommand acCmdFind to open the dialog.
"John" <jo@hn.comwrote in message news:f4**********@textnews.wanadoo.nl... I do mean that dialog box but if the user presses Ctrl-F or chooses it from the menu, how would I trap for that? john
"jahoobob via AccessMonster.com" <u12179@uweschreef in bericht news:73c1c50a84f66@uwe... If you mean the Find dialog box and you have a button on your form that opens Find, then you can simply edit the code behind the On Click of that button and add your code before the DoCmd that opens the Find. > John wrote: >>In a form how I can I trap for the action that a user opens the built >>in >>'find dialog'? I would like to trap for it and before the dialog shows >>up, I >>would like to execute some code, and after that I would like to bring >>up the >>'find dialog'. >>thanks, >>john
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: RAJ |
last post by:
hi
plz tell me how to know "how window is going to close"...
i have to right code for X button of forms...
plz telll me
thanks
bye
|
by: Mike Labosh |
last post by:
In VB 6, the Form_QueryUnload event had an UnloadMode parameter that let me
find out *why* a form is unloading, and then conditionally cancel the event.
In VB.NET, the Closing event passes a...
|
by: genojoe |
last post by:
VB.NET has items in its toolbox for OpenFile dialog, Print dialog, etc
I am creating a form where I would like to use the Find dialog by either pressing Ctrl-F, or by making a selection from a...
|
by: Chris Botha |
last post by:
If one wants to assure that there is only one instance of an app running,
then the popular solution is to use a Mutex and a message box, telling the
user there is already one running. I decided to...
|
by: pemo |
last post by:
Ambiguous?
I have a student who's asked me to explain the following std text (esp. the
footnote).
6.2.6.1.5
Certain object representations need not represent a value of the object
type. If...
|
by: Bill Schmidt |
last post by:
I am attempting to send an SNMP trap using C#. however I have been
unable to find a way to do it. websearching has turned up a small
number of 3rd party tools that should be able to do this,...
|
by: vishalgupta |
last post by:
i have a defined a function which i when call displays the saveas dialog box. i have used the following code:
Private Sub ClT()
On Error GoTo Cancel
CommonDialog1.InitDir = "C:\"...
|
by: =?Utf-8?B?UHVjY2E=?= |
last post by:
Hi,
My C# application trys to access directorycontext during Form loading. Try
and Catch if there is an exception. I then output an error message and then
"this.Close();" to exit the...
|
by: ESmith |
last post by:
I want to be able to catch the exception thrown when trying to write to a
"locked" Usb drive.
For instance:
private void WriteToUsbDrive (string filePath, byte theBytes)
{
...
try
{
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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...
|
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...
| |