Solved

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

Posted on 2006-11-26
2
293 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

914 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now