Solved

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

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
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.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

757 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

21 Experts available now in Live!

Get 1:1 Help Now