Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I use a DoCMD to address a pop up form

Status
Not open for further replies.

jazzz

Technical User
Feb 17, 2000
433
US
I have a pop up form Forms!frmsoldto that I want to close when the user hits the save button on this form or make a New record after the save button is selected (either would work).  No matter how I try to address the command my main form closes not the popup how do I address the current form to the docmd?
 
can you give me an example, please.  I tried Forms!frmSoldto docmd.whatever here all with no luck.  I'm sure I missing something really stupid.
 
If you want to close the form:<br><br>-----<br><br>Private Sub Save_Click()<br>&nbsp;&nbsp;&nbsp;' Do what you need to save (verification, etc)<br>&nbsp;&nbsp;&nbsp;Docmd.Close acForm, &quot;frmSoldto&quot;<br>End Sub<br><br> <p>Jim Lunde<br><a href=mailto:compugeeks@hotmail.com>compugeeks@hotmail.com</a><br><a href= Application Development
 
Thanks I'll give it a try....&nbsp;&nbsp;I got it to work by first doing <br>Forms!frmsoldto.setfocus<br>docmd.whatever<br>talk about brain drain...<br><br>Thanks again<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top