text box control source

mkelly

Registered User.
Local time
Today, 16:22
Joined
Apr 10, 2002
Messages
213
Is it possible to run two commands in a text box control source?

If so how do you split them?

I want the first control to limit data based on a type
and the second function to calculate data
 
No, you are best to write a small function and call that in the ControlSource.
 
ok now to sound totally dumb, how do I do that?
 
Well, that depends on what you want to do - what's the calculation you want in the ControlSource, what's the validation, and what's to be returned if the result goes outwith the required values?
 
First I want it to look for all jobs that are dup-1

=Iif[work type]="dup-1"

Then I want it to run this calculation on the dup-1 records

=Int(Sum([job completed time]-[job start time]-CDate("0:0:" & DatePart("s",[job completed time]-[job start time]))))*24+DatePart("h",Sum([job completed time]-[job start time]-CDate("0:0:" & DatePart("s",[job completed time]-[job start time])))) & Format(Sum([job completed time]-[job start time]-CDate("0:0:" & DatePart("s",[job completed time]-[job start time]))),":nn")
 

Users who are viewing this thread

Back
Top Bottom