Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2002
    Location
    Thailand
    Posts
    81

    Question Unanswered: Go to previous form, like go.history = -1, Plz Help.

    I have built an interface where there is never more than 1 form open at a time.

    Problem is that you can land at some forms, by following buttons and links from different locations. Meaning I cannot tell what form to send the user back to. How can I make a "go to the previous form" button?

    Maybe this can be done with global variables that are set when the previous form is closed, but this seems overly complicated for such an easy task that ought to be built in!?

    Furthermore this makes things complicated when you want the form you go back to show the same record as it was showing when the user followed a link or a button. And using this variables and open form commands are really messy when someone has followed a link from a subform.

    Thx

    Jo´
    Last edited by Johnny Dove; 08-19-02 at 13:30.

  2. #2
    Join Date
    Apr 2002
    Location
    Thailand
    Posts
    81

    Re: Go to previous form, like go.history = -1, Plz Help.

    Replying to my own post here, but what about setting both FormName and RecordID into global variables, everytime a form is closed.

    And then when someone clicks the back button you have something like:

    open form strFormName and go to StrRecordID

    Is that the way people do it?

    Prob is I do not know how to set globals.

    Jo´

  3. #3
    Join Date
    Aug 2002
    Location
    Newport News, VA
    Posts
    8

    My first post

    So this is my first post and it's a reply to your message.

    In the module view (preferably not related to a form, insert the statement:
    "Public Dim Globalvariable as String"

    This will allow you to use the variable without losing it's value while changing forms.

    Hope this helps!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •