* -- Checking for missing data compared against last data received * -- Check for Friday or Saturday for old and new is Monday date then we're not missing any data if (dow(Record_fm)=2 and Record_fm - PriorRec_To > 3) ; or (dow(Record_fm)<> 2 and Record_fm > PriorRec_To+1) tmpDays = Record_fm - PriorRec_To if m.tmpDays > 1 for i = 1 to m.tmpDays-1 * -- Check against holiday for each missing record && Sundays & Saturdays if dow(PriorRec_To+m.i)<>1 and dow(PriorRec_To+m.i)<>7 ; and !seek(PriorRec_To+m.i,'Holidays') lcTempStr = "May have Missing Recorded data for "+ dtoc(PriorRec_To+m.i)+"." if not m.lcTempStr $ m.tmpNotesStr tmpNotesStr = iif(empty(m.tmpNotesStr),'',m.tmpNotesStr+chr(13)) + m.lcTempStr endif llMDFlag = .t. endif && Missing Data endfor && Going to the next date to check for missing data endif endif && Checks for Fri or Sat and Mon>Thanks Nadya. I think I understand the idea now. Coding can get really complicated for me sometimes as it's hard to visualize how to put things in the correct place.