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
Solved

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

Posted on 2006-11-26
2
314 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
  • 2
2 Comments
 
LVL 61

Accepted Solution

by:
mbizup earned 500 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
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…

828 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