UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Storing a calculated text box value    
 
   
simie_g
post Jun 9 2006, 06:34 AM
Post #1

New Member
Posts: 4
From: Newbury, United Kingdom



Hi guys,

i have a text box that calulates the total hours of an employee, now i want to take this value and store it into one of my fields.

how do i do this?

cheers,
Simie_g
(IMG:http://www.utteraccess.com/forum/style_emoticons/default/crazy.gif)
Go to the top of the page
 
+
niesz
post Jun 9 2006, 06:43 AM
Post #2

Utter A-fishin'-ado
Posts: 17,723
From: Cincinnati, Ohio, USA . . . ><((((°>



Storing calculated values is generally considered a very bad idea. Rather than store the value, you just recalulate it as needed.
Go to the top of the page
 
+
simie_g
post Jun 9 2006, 06:56 AM
Post #3

New Member
Posts: 4
From: Newbury, United Kingdom



The thing is though, i need to store it as i have a module that needs to get that value. the module loops through every employee and calculates the total wage owed... but i cannot for some reason, even though the form is open. the form doesn't seem to do the calculation when the module runs.
Go to the top of the page
 
+
niesz
post Jun 9 2006, 06:59 AM
Post #4

Utter A-fishin'-ado
Posts: 17,723
From: Cincinnati, Ohio, USA . . . ><((((°>



I would try to track down why you cannot calculate this value (maybe is a timing thing, maybe the way it is being referenced, etc.) rather than breaking normalization rules. You may want to post more details as to the specific problem and see if someone can help you with that.
Go to the top of the page
 
+
simie_g
post Jun 9 2006, 07:23 AM
Post #5

New Member
Posts: 4
From: Newbury, United Kingdom



well if it is a timing thing, which was my original thought, how do i make sure that it isn't. can i wait for the form to calculate before continuing with the rest of the process?
Go to the top of the page
 
+
niesz
post Jun 13 2006, 07:08 AM
Post #6

Utter A-fishin'-ado
Posts: 17,723
From: Cincinnati, Ohio, USA . . . ><((((°>



The only way I know is to step through the code line by line or use Debug.Print to show what the variables are during the life cycle of the code. Debug.Print will print them to the Immediate window.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 23rd May 2013 - 12:50 PM