473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Mircrosoft Access: Opening a sub form with a command button

I have created a form and want to open the sub form with an on click command button. Is this possible? The only way I can view the subform is to have it embedded into the form. I want to have it hidden and open with the click of a command button embedded inside of the form itself
Oct 4 '07 #1
9 3561
debasisdas
8,127 Expert 4TB
Question moved to Acess forum.
Oct 5 '07 #2
NeoPa
32,556 Expert Mod 16PB
Thanks Debas :)

To show and hide the subform, set the .Visible property of the SubForm item in your code.
Oct 5 '07 #3
NeoPa:

Thanks for the update. I am now able to hide the subform, but I am still having trouble opening (viewing) the hidden subform with the use of a "open form" command button? Is this possible?
Oct 8 '07 #4
NeoPa
32,556 Expert Mod 16PB
It's going to be difficult to get a form to show on the clicking of a command button on that form if the form starts off invisible.
Can you let us know if this is what you're thinking of or if there's other forms involved. If so, what and where are they (Names etc).
Oct 10 '07 #5
Well I have a lot of fields that will not fit on one page of the form. I am attempting to have some of the fields listed on the first page of the form, and then click a command button that opens the remaining fields on a second page (sub form)? Maybe I can set the properties of the subform and have it built in to page one of the form and click a button to maximize the subform (drop down list)?

thanks
Oct 10 '07 #6
NeoPa
32,556 Expert Mod 16PB
Have you considered using tabbed pages on your form?
That is the usual way to handle situations of this nature.
Oct 11 '07 #7
DosR
6
You may also extend the length of the details section of the form to include all controls you need, use a page break control at the end of the visible area in the form margins,and finaly include buttons to move from one page to the next.
DoCmd.GoToPage 2
DoCmd.GoToPage 1
I'm using this and is very easy and confortable.
Oct 11 '07 #8
Thank you for all of your help
Oct 11 '07 #9
NeoPa
32,556 Expert Mod 16PB
No problems. I hope it helped.
Welcome to TheScripts :)
Oct 12 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: William Bradley | last post by:
Following is the code I am using, behind a command button, on a form to print out only the report of that particular form. ******************** Code Start ************************ Dim strDocName...
1
by: Steve Patrick | last post by:
Hi All Looking for a code to make a command button close a welcome form and then open a switchboard form. Need step by step if possible - as complete newbie here. Thanks for any / all help....
1
by: Pete Straman Straman via AccessMonster.com | last post by:
Hey: I have created a module that runs fine. I am trying to put all my modules on a form. I cannot get the modules to run from the command buttons. The error I get is Compiler error: ...
14
by: Kevin | last post by:
A couple of easy questions here hopefully. I've been working on two different database projects which make use of multiple forms. 1. Where's the best/recommended placement for command buttons...
1
by: petekikamookow | last post by:
Hi Guys.........Help Please I'm trying to add a password to limit access to a command button called"Confidential Information" Mucho regardo
6
by: martin DH | last post by:
**Urgent Need** I'll throw out the basics and any assistance is very, very, very much appreciated! Access 2003 on XP On a form (frmMain) is an option group of check boxes (ReportFrame) from...
16
by: Steve | last post by:
I am working on a database that has a main menu, many sub-menus and some sub-sub-menus. They are all forms that have numerous command buttons on them to open forms and reports in the database. The...
2
by: falroc | last post by:
I created a Access 2007 database that had a add record command button that worked just fine until I split the database and made Sqlexpress 2005 the backend. Now, when I click on the add record...
1
by: munkee | last post by:
I have a sub form within my main form which displays all records from a table in an overviewed format. Within the design view in the sub form I added a "View full record" button. When you click this...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.