Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by nikkiwe

  1. nikkiwe

    IF statement not evaluating first record...

    Got it! It was the placement of the onlastrecord statement. It needed/wanted to be placed at the beginning of the Formula - after the onfirstrecord. Here is the complete functioning forumal: hileprintingrecords; EvaluateAfter ({@Shift}); If onfirstrecord then ({@Shift}) Else IF...
  2. nikkiwe

    IF statement not evaluating first record...

    Sorry it has taken me so long to get back to you. I tried as you suggested but the forumual error during the onlastrecord with "too many arguments". I have tried changing the number of brackets... no luck.... Thanks again
  3. nikkiwe

    IF statement not evaluating first record...

    nope, the @shift is returning a value...
  4. nikkiwe

    IF statement not evaluating first record...

    @shift interprets a time reporting code. The code determins which shift it is day, evening or night. That part is working and so is the above formual with the exception of the last records....grrr
  5. nikkiwe

    IF statement not evaluating first record...

    I know it's not correct but here is the formula. The onlastrecord part is not working. The last record is blank.. Whileprintingrecords; IF onfirstrecord then {@Shift} ELSE IF ({sheet1$.ID} = Next({sheet1$.ID})) AND ({@Shift}="DAY" AND Next({@Shift})="Evening")Then "Day" Else IF...
  6. nikkiwe

    IF statement not evaluating first record...

    Thanks for the information Ian. Worked like a charm on the first record however, the last record is dependent on the previous record.... eg if an employee is coded with two shifts (day and evening) on the same day, then group the evening shift into days. I am not sure how to tell it to force...
  7. nikkiwe

    IF statement not evaluating first record...

    This statement is not evaluating the first record. Any help is appreciated. Thanks! Whileprintingrecords; IF ({sheet1$.ID} = Next({sheet1$.ID})) AND ({@Shift}="DAY" AND Next({@Shift})="Evening")Then "Day" Else IF ({sheet1$.ID} = Previous({sheet1$.ID})) AND ({@Shift}="Evening" AND Previous...

Part and Inventory Search

Back
Top