?
Solved

create forward and back button to use forms and only see form you are looking at

Posted on 2006-11-26
2
Medium Priority
?
333 Views
Last Modified: 2010-05-18
Hello,
Lets see if I can ask this question:
I have created about 20 forms in microsoft access. Each form is simple and has text box for user to write in correct word for picture I have put on form. I use if statement to tell them if they are correct or not.

I want to have at the bottom of forms a forward and back command buttons- to go to next form or go back to previous form. I have created a forward button - but when I click it - I still have first form behind the form I have navigated to. Is there a way to make form invisible i am leaving?
is there a way to go back to previous form? and then have present form invisible?

Mainly I just want user to see one form at a time.

thank yoiu
0
Comment
Question by:davetough
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 61

Accepted Solution

by:
mbizup earned 2000 total points
ID: 18014110
Hi davetough,
To hide the current form, try me.form.visible = false

In the openform statement, pass the name of the form you are currently on to the new form through the openargs parameter:

Docmd.openform "SomeForm",,,,,,me.name

Then in the "Back button", unhide the previous form:

Forms(openargs).form.visible = true

0
 
LVL 61

Expert Comment

by:mbizup
ID: 18014135
Glad to help out :-)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question