John Baker said:
There are probably a ton of ways to do this, but this is what I would do:
Forms have a Tag property whose only functionality is to store any extra
information you want about the form. On the OnClose event of the
form, store the name of the Page that has the focus in this property,
and on the OnOpen event retrieve it and set the focus to that page.
Hmm. Thanks for the answers people.
I don't want to use another table to store the info so, the tag
function looks most appropiate for what I'm trying to do. Problem is I
have never seen it used in any mdb before.
I have started to write the following "air code" for the form
Private Sub CmdExit_Click()
Forms!frmTransactionTaskList.tag = "TabCtlPages.Value = PageSold"
DoCmd.Close
End Sub
' This is to receive info on whatever the last page was I was looking
at
Private Sub Form_Open(Cancel As Integer)
' Some code to retrieve the code from the Tag and set the
' focus to the last page I was looking at.
End Sub
BTW what needs to go in Form>Properties> Tag
Thanks for giving this your attention.
Smiley Bob