A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Can I have different forms come up depending on the value in a fie



 
 
Thread Tools Display Modes
  #1  
Old October 31st, 2006, 02:05 AM posted to microsoft.public.access.forms
Slappy
external usenet poster
 
Posts: 13
Default Can I have different forms come up depending on the value in a fie

As I scroll through the records in my form, I want to see different versions
of my form (i.e. different text boxes, different buttons, different
checkboxes) depending on the value contained in a particular field in the
record.
  #2  
Old October 31st, 2006, 05:37 AM posted to microsoft.public.access.forms
John Vinson
external usenet poster
 
Posts: 4,033
Default Can I have different forms come up depending on the value in a fie

On Mon, 30 Oct 2006 18:05:02 -0800, Slappy
wrote:

As I scroll through the records in my form, I want to see different versions
of my form (i.e. different text boxes, different buttons, different
checkboxes) depending on the value contained in a particular field in the
record.


Ow. WHY!?

You can do so, in the Form's Current event - by either opening another
form at each record, or (better) by putting all the possible controls
on your main form and making them visible or invisible. But this will
make your application a) very slow and b) extremely confusing for the
user!

The need to do this makes me very suspicious of the normalization of
your tables. Could you explain the rationale?

John W. Vinson[MVP]
  #3  
Old October 31st, 2006, 09:18 PM posted to microsoft.public.access.forms
Slappy
external usenet poster
 
Posts: 13
Default Can I have different forms come up depending on the value in a

Thanks for the reply.

I have a small law practice in which I act for injured people. I have
created a data base to keep track of pertinent information about each client.
The problem is that some clients were injured in a car accident and some
were injured in a slip-and-fall accident. Each different kind of injury
(i.e. car accident, slip-and-fall etc.) has its own unique pertinent
information. I have all the clients in a parent table named "Clients" in
which there is a field named "category". When I call up the record of a
client who was injured in a car accident (i.e. where the data in the
category field is "car accident") I want to see a form that has certain
fields (contained in the "Clients" table) such as "accident_report_obtained".
Similarly, when I call up the record of a client who was injured in a
slip-and-fall (i.e. where the data in the category field is "slip and fall")
I want to see different fields (also contained in the "Clients" table) such
as "notice_sent_to_municipality". Ideally, as I scroll through the records
(next, next, next), I will see alternating forms (car accident or slip and
fall).

The above is a simplified explanation as there are maybe 5 categories of
injury each with its own set of unique fields. All of the forms would have
the basic contact fields (such as name, telephone number of client).

Thanks. Any suggestions you could provide would be greatly appreciated.
(If you think it is best to have hidden fields, I can do that...but I tend to
think that this is not the way to go because each form has quite a few unique
fields such that the various text boxes and labels would have to be stacked
on top of each other in order to fit in the available screen space).

"John Vinson" wrote:

On Mon, 30 Oct 2006 18:05:02 -0800, Slappy
wrote:

As I scroll through the records in my form, I want to see different versions
of my form (i.e. different text boxes, different buttons, different
checkboxes) depending on the value contained in a particular field in the
record.


Ow. WHY!?

You can do so, in the Form's Current event - by either opening another
form at each record, or (better) by putting all the possible controls
on your main form and making them visible or invisible. But this will
make your application a) very slow and b) extremely confusing for the
user!

The need to do this makes me very suspicious of the normalization of
your tables. Could you explain the rationale?

John W. Vinson[MVP]

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:18 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.