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  

Values unbound textbox based on calculation of 3 other fields



 
 
Thread Tools Display Modes
  #1  
Old June 2nd, 2009, 02:19 PM posted to microsoft.public.access.forms
Pluggie
external usenet poster
 
Posts: 8
Default Values unbound textbox based on calculation of 3 other fields

Five fields on my continuous form:
-ID
-Date_Today (date)
-End_Date_Contract (date)
-Duration_Update_Process (numeric)
-Warning (text)

Calculation that determines value of [Warning]:

-If number of days between [End_Date_Contract] and [Date_Today] is equal to
or smaller than [Duration_Update_Proces], display textvalue: "Almost too
late";
-If number of days between the above fields is bigger, display textvalue: ""
-If number of days between the above fields is negative, display textvalue:
"Oh no! Too late!!!"

How do I get this to work in [Warning]?


  #2  
Old June 2nd, 2009, 04:23 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Values unbound textbox based on calculation of 3 other fields

I would suggest you use the form Before Update event to test the values and a
message box to display the messages.
--
Dave Hargis, Microsoft Access MVP


"Pluggie" wrote:

Five fields on my continuous form:
-ID
-Date_Today (date)
-End_Date_Contract (date)
-Duration_Update_Process (numeric)
-Warning (text)

Calculation that determines value of [Warning]:

-If number of days between [End_Date_Contract] and [Date_Today] is equal to
or smaller than [Duration_Update_Proces], display textvalue: "Almost too
late";
-If number of days between the above fields is bigger, display textvalue: ""
-If number of days between the above fields is negative, display textvalue:
"Oh no! Too late!!!"

How do I get this to work in [Warning]?


  #3  
Old June 2nd, 2009, 07:50 PM posted to microsoft.public.access.forms
Pluggie
external usenet poster
 
Posts: 8
Default Values unbound textbox based on calculation of 3 other fields

Thanks for the intent, but I need the messages to appear as part of the
continuous form, so in an unbound textbox. The application will be webbased
and later on, I want certain messages that are displayed to trigger
auto-emails.
So, any other suggestions?

"Klatuu" wrote:

I would suggest you use the form Before Update event to test the values and a
message box to display the messages.
--
Dave Hargis, Microsoft Access MVP


"Pluggie" wrote:

Five fields on my continuous form:
-ID
-Date_Today (date)
-End_Date_Contract (date)
-Duration_Update_Process (numeric)
-Warning (text)

Calculation that determines value of [Warning]:

-If number of days between [End_Date_Contract] and [Date_Today] is equal to
or smaller than [Duration_Update_Proces], display textvalue: "Almost too
late";
-If number of days between the above fields is bigger, display textvalue: ""
-If number of days between the above fields is negative, display textvalue:
"Oh no! Too late!!!"

How do I get this to work in [Warning]?


  #4  
Old June 2nd, 2009, 07:51 PM posted to microsoft.public.access.forms
Pluggie
external usenet poster
 
Posts: 8
Default Values unbound textbox based on calculation of 3 other fields

Thanks for the intent, but I need the messages to appear as part of the
continuous form, so in an unbound textbox. The application will be webbased
and later on, I want certain messages that are displayed to trigger
auto-emails.
So, any other suggestions?

"Klatuu" wrote:

I would suggest you use the form Before Update event to test the values and a
message box to display the messages.
--
Dave Hargis, Microsoft Access MVP


"Pluggie" wrote:

Five fields on my continuous form:
-ID
-Date_Today (date)
-End_Date_Contract (date)
-Duration_Update_Process (numeric)
-Warning (text)

Calculation that determines value of [Warning]:

-If number of days between [End_Date_Contract] and [Date_Today] is equal to
or smaller than [Duration_Update_Proces], display textvalue: "Almost too
late";
-If number of days between the above fields is bigger, display textvalue: ""
-If number of days between the above fields is negative, display textvalue:
"Oh no! Too late!!!"

How do I get this to work in [Warning]?


 




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:29 PM.


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