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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add Record Button

Status
Not open for further replies.

quig699

Technical User
Nov 7, 2006
42
US
This may be somethng easy but for the life of me I can't figure it out. Is there a way to set up a form to close automatically after the add record button is clicked?

Thanks for any help.

AMY
 
. . . or:
Code:
[blue]   DoCmd.Close acForm, "[purple][b]FormName[/b][/purple]"[/blue]

Calvin.gif
See Ya! . . . . . .
 
Where exactly would I put this code??

Amy
 
How are ya quig699 . . .

I answered the question with as much vagueness as you asked! . . . I'm sure [blue]Eupher[/blue] did as well!

If your saying after the [blue]AddNew button[/blue] is clicked you want to save the current record & then close the form, then the code we've presented here should be the last line.

If its anything else you need to be more specific! . . .

[blue]Your Thoughts? . . .[/blue]

Calvin.gif
See Ya! . . . . . .
 
AceMan answered vaguely, I answered incorrectly! [blush] Sorry, I haven't done much coding lately. Use it or lose it, ya know...

Ken S.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top