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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

changing forms



 
 
Thread Tools Display Modes
  #1  
Old May 6th, 2010, 09:21 PM posted to microsoft.public.access
danklebs
external usenet poster
 
Posts: 5
Default changing forms

So I have a database that keeps track of tests for work. I need a form to
change based on a previous input in a form. So if the previous input is a 1,
then the form need to say one then and if that input is a 2 the form needs to
say something different. Is this possible and if so how would one do this?
  #2  
Old May 6th, 2010, 09:37 PM posted to microsoft.public.access
Dorian
external usenet poster
 
Posts: 542
Default changing forms

You have not explained what you want very well.
Guessing what you might want....
You can store the value in a control in a global variable.
Do this in the controls AfterUpdate event.
In the Forms Current event you can examine this variable and then set
something on the form based on its value. The Current event is triggered
whenever you move to a new record.
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".


"danklebs" wrote:

So I have a database that keeps track of tests for work. I need a form to
change based on a previous input in a form. So if the previous input is a 1,
then the form need to say one then and if that input is a 2 the form needs to
say something different. Is this possible and if so how would one do this?

  #3  
Old May 7th, 2010, 09:14 PM posted to microsoft.public.access
danklebs
external usenet poster
 
Posts: 5
Default changing forms

The database tracks tests that are performed. On the form to enter data,
there is a priority input cell for the test. If the priority is A then a
different input cell in the form needs to say one thing and then if the
priority is a B, the form input cell needs to say something else. Is this
possible?

"Dorian" wrote:

You have not explained what you want very well.
Guessing what you might want....
You can store the value in a control in a global variable.
Do this in the controls AfterUpdate event.
In the Forms Current event you can examine this variable and then set
something on the form based on its value. The Current event is triggered
whenever you move to a new record.
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".


"danklebs" wrote:

So I have a database that keeps track of tests for work. I need a form to
change based on a previous input in a form. So if the previous input is a 1,
then the form need to say one then and if that input is a 2 the form needs to
say something different. Is this possible and if so how would one do this?

  #4  
Old May 9th, 2010, 04:50 PM posted to microsoft.public.access
Marco Pagliero
external usenet poster
 
Posts: 61
Default changing forms

On 7 Mai, 22:14, danklebs wrote:
The database tracks tests that are performed. On the form to enter data,
there is a priority input cell for the test. If the priority is A then a
different input cell in the form needs to say one thing and then if the
priority is a B, the form input cell needs to say something else. Is this
possible?
So I have a database that keeps track of tests for work. I need a form to
change based on a previous input in a form. So if the previous input is a 1,
then the form need to say one then and if that input is a 2 the form needs to
say something different. Is this possible and if so how would one do this?


I understand you have two fields on your form: [priority] and
[warning]?
So put in the ControlSource of field [warning] :
= iif([priority]="A", "One thing", "Something else")

The first "=" is needed. You need also to adjust the field names of
course.

This will not work if [priority] can have something else than "A" or
"B" (e.g. "C" or nothing) or [warning] needs to be a bound field.

Regards
Marco P
 




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 03:55 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.