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 2214
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.c om 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.c om" <u12179@uweschr eef in bericht
news:73c1c50a84 f66@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.c om 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.comwro te in message news:f4******** **@textnews.wan adoo.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.c om" <u12179@uweschr eef in bericht
news:73c1c50a84 f66@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*********@Se eSig.Invalidsch reef 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.comwro te in message
news:f4******** **@textnews.wan adoo.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.c om" <u12179@uweschr eef in bericht news:73c1c50a8 4f66@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.comwro te in message news:f4******** **@textnews.wan adoo.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*********@Se eSig.Invalidsch reef 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.comwro te in message news:f4******* ***@textnews.wa nadoo.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.c om" <u12179@uweschr eef in bericht news:73c1c50a 84f66@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*********@Se eSig.Invalidsch reef 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.comwro te in message
news:f4******** **@textnews.wan adoo.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*********@Se eSig.Invalidsch reef 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.comwro te in message news:f4****** ****@textnews.w anadoo.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.c om" <u12179@uweschr eef in bericht news:73c1c50 a84f66@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 CancelEventArgs that lets me cancel
the Close() operation, but is there still any way to find out *why* a form
is closing?
This app as a form that needs to be loaded at startup, closed only at
shutdown, and then Show() / Hide() for the user. If...
|
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 context sensitive menu or a button on the form that applies the Find dialog to a textbox
Is there an easy way to do this without writing code that manually implements the features of the Find dialog?
|
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 go one further, bring the
1st instance to the foreground, no message boxes. Impressive, I thought. So
the first instance stores the main window handle in shared memory (win32
calls), second instance gets the window handle from shared memory if it...
|
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 the stored
value of an object has such a representation and is read by an lvalue
| |
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, however the
ones that are available for use without purchase are tend to be poorly
documented and I am unable to find a trap method. I have read that
this should be able to be done with WMI using a management object,
however once again all thats...
|
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:\"
CommonDialog1.ShowSave
__________________
Cancel:
End Sub
|
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 application. But, as my applicaiton closes, the
MS dialog comes up asking to send Error Report to MS.
I tried using ThreadException event code from:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.application.threadexception.aspx
But I'm...
|
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: 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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |