Return to form

cookieduster

Registered User.
Local time
Today, 16:47
Joined
Dec 8, 2002
Messages
14
A question from an old newby.

I need to return to the same place on my form after printing a report, but I return to the first ID each time.

Here is the code that I am using:

DoCmd.OpenReport "Association Giro All", acPreview, "", "[AssociationID]=[Forms]![Association Enter]![AssociationID]"
DoCmd.Close acForm, "Association Label Enter"
DoCmd.PrintOut acPrintAll, , , acMedium, 1, True
DoCmd.OpenForm "Association Enter", acNormal, "", "[AssociationID]=[Screen].[ActiveForm].[AssociationID]", , acNormal
DoCmd.Close acReport, "Association Giro All"

Any help would be greatly appreciated.
 
Why do you have to close the form? Why not just hide it?

Me.Visible = False

Evan
 
Many thanks, Evan
 

Users who are viewing this thread

Back
Top Bottom