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!

Close Form

Status
Not open for further replies.

FoxStudent

Technical User
Feb 24, 2000
85
GB
Is there anyway of storing the name of the calling form? So when the user closes the immediate form they return to the form they called it from. thank u

Grainne
 
you can create a public variable then store the name of the form to it using Me.Name prior to opening the new form


strFormName = Me.Name
DoCmd.OpenForm ("NewFormName")
DoCmd.Close acForm, strFormName



then in the close event for the 2nd form use

DoCmd.OpenForm strFormName


PaulF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top