Access (FIND and REPLACE) Dialog Problem. acCmdFind

  • Thread starter Thread starter ApexData
  • Start date Start date
A

ApexData

Hello

I am having a problem with the (Access FIND and REPLACE dialog).
I want it to operate in FIND mode only. I have set the
AllowEdits/Additons/Deletions
to False in the MainForm and the FIND feature becomes locked in and
works fine, however the logic of my MainForm include New/Edit/Del
buttons that
become visible each time the next record is displayed. The FIND
dialog when it
Finds the next record is subsequently turning these buttons on and
this is the problem
because it allows the user to press one, which in turn changes the
AllowEdits mode to True
and then allows REPLACE to be made with the FIND/REPLACE dialog. This I
do not want!

The code behind the Command Button is executing beyond my call for
Cmd.RunCommand acCmdFind, and this is where I'm losing my ability to
control things.
Is there a way to stop the code flow at the acCmdFind to wait for it to
complete?


ThankYou
Greg
 
Thankyou for your response. I was already aware of the link you show
and used
it to model my code for the FIND effort. This all works fine, however,
I need to
CAPTURE the FIND dialog box and control it !

Can I place the (Access FIND Dialog) in in a popup dialog form? This
will stop the
user from pressing keys on the MainForm! How can I do this and still
be able
to FIND stuff in the MainForm?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top