• ** There has been a recent site upgrade. Please clear your browser cache to avoid issues. **
  • New forum feature - post voting and best solution

    Check out this thread for the details: https://www.access-programmers.co.uk/forums/threads/new-forum-feature-post-voting-and-best-answer.314134/

    This new feature looks great to me! :)

  • We now have 3 forum themes

    Go for the default (light) theme, Shades of Grey or Shades of Blue. I just added the Blue one.

    The thread about it is here: https://www.access-programmers.co.uk/forums/threads/new-forum-theme-shades-of-blue.314136/

Open; Close (1 Viewer)

D

Dennis Kraak

Guest
Hi, can someone help me with this one ?

I've made a dialogform with a combo box
When I press the OK button, another form opens with the records that match the "input" of the combo.
My problem is: How to close the dialogform when the other form opens ????
 

Peter Paul

Registered User.
Local time
Today, 12:02
Joined
Jan 1, 2000
Messages
82
My suggestion is to go into the form you wish to close. Go to the properties for the "OK" button. On the properties, go to the EVENT tab, then click on the ''' button next to that. In front of the line of code, add this

DoCmd.Close

Close the code, and try it. If you put the command in front, it will close the box or form, and still continue with the rest of the operation.

Hope that helps
 
D

Dennis Kraak

Guest
Thanks a lot !!!!! It works !!

I've tried a lot of codes on several events but DoCmd.Close BEFORE DoCmd.OpenForm "MyForm", acNormal (at the OK_Click) ?!?
I would never have found this one by myself...Thanks again !!!!!

Dennis
 

Users who are viewing this thread

Top Bottom