How do I Execute buttons when I want them to????

  • Thread starter Thread starter Wolf
  • Start date Start date
W

Wolf

Guest
Ok people please help if u can. Basically I have a 'Main Form' which contains two pop up forms. So that is three forms altogether. The 'Main Form', pop-up 'Form One', and pop-up 'Form Two'.

Each pop-up form opens when its designated button is pressed. My problem is that I want the forms to open once the tab or focus goes onto its relative button.

Meaning once I tab it to ie. the button for pop-up 'Form One', I want 'Form One' to open up straight away instead of having to physically press the button. Once the details of 'Form One' have been filled in I want it to go to the next record so that it will be ready for another entry and also to close the form and subsequently open pop-up 'Form Two'. These need to be done simultaneously without having to press a button for each function to occur.

Again after filling in the details for 'Form Two', I want it to go to the next record so that it will be ready for a new entry and then to close itself. Again without having to press a button for each function to occur.

Ok hopefully I explained it clearly.... if anyone can help or give me a few ideas on solving this problem please do....thanx...

kind regards....

The Wolf...
 
Try copying the code in the button's Click event to the button's GotFocus event.
 
Thanx for replying Mike, i tried that but it does not work. if u can think of anything else i would be grateful. kind regards...

laterz.....

The Wolf...
 
Hi Wolf,

I make my Popup forms first. Then, when I design a form that will call them, I use the command button wizard. The code that the wizard creates works without modication in the GotFocus event. It's a simple cut and paste. I just tested it out.

Mike
 
i know what ur saying mike, and i thought the same thing too, but for some reason it just doesnt want to work!!!! i dunno what im doing wrong. is it ok if i email u a dummy example for u to show me how u did it. i think if i see exactly what u hav done ill see what simple mistake ive probably made. if not its ok ill continue to try. thanx mike.... regards...

The Tired Wolf...
 
Ok Mike ive sent the Example. see what u can do with it.... Thanx.

The Wolf...
 

Users who are viewing this thread

Back
Top Bottom