G
Guest
I have 3 forms that give the choice of going to One other form. I would like
to be able to have one button on that could enable the user to go back to the
form he came from( one of the 3 that he came from). I thought I would set a
variable when I leave the original and then Open that varaiable when I want
to go back to that form. I think I have my " wrong (in or out) or I should
be setting the variable in public.
So in each form as I leave(on click) I set FormName to the name of the form
that I am leaving .
Dim FormName As String
FormName = "frmInquiryPosting"
Then In the Other form (To get back ) I used the Cmd Wizard and changed the
name of the form I gave the wizard to FormName
stDocName = FormName
DoCmd.OpenForm stDocName, , , stLinkCriteria
It doesnt work. I hope I am Making sense.
to be able to have one button on that could enable the user to go back to the
form he came from( one of the 3 that he came from). I thought I would set a
variable when I leave the original and then Open that varaiable when I want
to go back to that form. I think I have my " wrong (in or out) or I should
be setting the variable in public.
So in each form as I leave(on click) I set FormName to the name of the form
that I am leaving .
Dim FormName As String
FormName = "frmInquiryPosting"
Then In the Other form (To get back ) I used the Cmd Wizard and changed the
name of the form I gave the wizard to FormName
stDocName = FormName
DoCmd.OpenForm stDocName, , , stLinkCriteria
It doesnt work. I hope I am Making sense.