Solved

multiple detail-sections on one form?

Posted on 1998-04-24
5
291 Views
Last Modified: 2012-05-04
Hello,

I need to create a form that sometimes does, and sometimes (depends on the fase of entering information) shows a inputfield.

I was hoping i could do this by creating multiple detail-sections on one form, and with visual basic setting the visible-propertie to the forms. if this is not possible, is there an other way to group inputfields on a form, so i could set the visible propertie for them at once?

(im working with access97)

Could you explaine to me wether or not i can do that, or give me an alternate option?
0
Comment
Question by:topkapi
  • 2
  • 2
5 Comments
 
LVL 6

Expert Comment

by:devtha
ID: 1956215
Hi,

  Based upon the info you have provided I think you can create a grouped radio buttons and then base upon the clicked button you can make some input fileds visible and some not.
If this is not answer please be more specific.

Devtha




0
 

Author Comment

by:topkapi
ID: 1956216
This is wat i want:

One Form, with more ~looks~

Like in step 1 you will see fields a & b, but in step 2 you will see fields c & d. This doesn't work with a group box.


0
 
LVL 3

Accepted Solution

by:
guillems earned 50 total points
ID: 1956217
Hi!  

  You say the solution. You must put all the fields that you want to see, and with code put the visible's property to false or true.
For example, you have a control that if the value is LIKE 1 you would see the control_B and LABEL_B, else you would see CONTROL_A and LABEL_A. The code do this is:

(...)

   if (me![CONTROL]= "LIKE 1") then
       me!CONTROL_A.visible = False
       me!LABEL_A.visible = False
       me!CONTROL_B.visible = True
       me!LABEL_B.visible = True
   else
       me!CONTROL_A.visible = True
       me!LABEL_A.visible = True
       me!CONTROL_B.visible = False
       me!LABEL_B.visible = False
  end if

(...)

Another solution is to put various sub-forms, and set the property visible of the subform to false or true.

I hope this help you!

0
 
LVL 6

Expert Comment

by:devtha
ID: 1956218
Hi Top
Under what condition you want to make them visible or invisible.
Devtha

0
 

Author Comment

by:topkapi
ID: 1956219
I'll go for that.

I don't really like changing the visible propertie for all those fields, but i *do* like the idea for multiple subforms wich i can manipulate!

Thanks, Topkapi
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

840 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