Search results

  1. mkelly

    command coming up with #NUM!

    thanks finally got it... =IIF([text132]=0,"0",[text132]/[text143])
  2. mkelly

    command coming up with #NUM!

    Also tried (IIf([text135]=0,0,[text135]/[text138]))
  3. mkelly

    command coming up with #NUM!

    I have been trying that Iif(text135=0,0, text135/text138) But keep getting an error on the opening of the report, I guess I am not that good at VBA
  4. mkelly

    command coming up with #NUM!

    there is no default setting on a text box and if there is I would still be dividing 0 by 0
  5. mkelly

    ActiveX problem

    http://www.access-programmers.co.uk/forums/showthread.php?t=60629&highlight=active+controls
  6. mkelly

    command coming up with #NUM!

    I have a text boc on a report and the control source is: =([text135]/[text138]) However sometimes text135 and 138 will be 0 How can I change the control to be blank in this instance instead of "#NUM!"? Also I set the decimal places to 2 and still get 6 or 7 decimal places is there another way...
  7. mkelly

    Query showing #error in field

    Can you please review the sample db abd let me know why my field "shorttime dup1 is returning and error if the coressponding field are blank and possibly how to fix it? thanks
  8. mkelly

    Update Function

    Thanks for the help and I understand how it will differentiate the dup-1's but how can I calculate the total times of those dup-1's and insert it in a text box on the report?
  9. mkelly

    IIf Criteria from a Text Box

    does "other company" mean any other company name in your code?
  10. mkelly

    Update Function

    Sorry it was to big and would not attach
  11. mkelly

    Update Function

    attached is the database what I am trying to do is get it to run when the report "operator production report" is opened and put the total hours next to the box with total dup-1 jobs worked I put it in the report code but cannot get it to work.
  12. mkelly

    Update Function

    It keeps giving me an error. I have a table with multiple [work types] dup-1, dup-2 etc. I want to pull only the jobs that are Dup-1 then run the Inc calculation on it to get the total time spent on all the jobs.
  13. mkelly

    Update Function

    Help with function code please!!!!! What am I doing wrong here? :confused: Function dup1() IIf ([Report_Operator production report]![Work Type] = "Dup-1") End If dup -1 <= 0 Else Int(Sum([job completed time]-[job start time]-CDate("0:0:" & DatePart("s",[job completed time]-[job start...
  14. mkelly

    text box control source

    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...
  15. mkelly

    text box control source

    ok now to sound totally dumb, how do I do that?
  16. mkelly

    text box control source

    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
  17. mkelly

    time over 24 hours limited to a job type??

    I am currently using this formula to calculate total time worked that exceeds 24hours: =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...
  18. mkelly

    sum time over 24 hours with a twist

    I am currently using this formula to calculate total time worked that exceeds 24hours: =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...
  19. mkelly

    sum specific records in a detail

    Still not getting it it is counting all the record and not distinguising between the types of jobs. I will attach part of the db it is the "Operator production report" Password is pbowes. anyone's help is appriciated I cannot upload it it is to large if you would like to view it please email...
  20. mkelly

    sum specific records in a detail

    Thanks Neileg by changing the code to: COUNT(Iif([job type]=Lit-1,[job type],0)) did the trick and only counted those specific records Thanks again
Back
Top Bottom