Connecting Tech Pros Worldwide Forums | Help | Site Map

Find Dialog Box - Detect When Complete and No Longer Displayed?

ApexData@gmail.com
Guest
 
Posts: n/a
#1: Mar 4 '06
Hello

I launch the Find Dialog Box from a button on a form. How can I
determine
specifically when the Find Dialog Box is no longer being displayed?

This will allow me to control my Button Availability which is giving me
a problem
because the OnCurrent code is invoked before the FindDialogBox leaves
the
screen. Such as when you FIND the next record.

MY Code:

ONCurrent (MainForm)
'Make all my control buttons available
Me.NEWRecButton.Enabled = True
Me.EDITRecButton.Enabled = True
Me.DELRecButton.Enabled = True
Me.FINDRecButton.Enabled = True
' Reset allow values to View Mode only. Set form to View only.
Me.AllowAdditions = False
Me.AllowEdits = False
Me.AllowDeletions = False

'The Code under my Find Button
' Use only in ViewMode, it will keep the FindDialog Box Replace feature
off)
Screen.PreviousControl.SetFocus
'Grayout the Buttons. Reset all to True back in OnCurrent of this
form later.
Me.NEWRecButton.Enabled = False
Me.EDITRecButton.Enabled = False
Me.DELRecButton.Enabled = False
Me.FINDRecButton.Enabled = False
'Action
DoCmd.RunCommand acCmdFind

ThankYou
Greg

Closed Thread