I have just downloaded V6.01 and when I try to do a Optimized compile, I get the CS1002 error. This error supposedly indicates a missing semicolon ";". However I cannot see where in the code there is supposed to be one. eg: If StrAt(CurrentFocus,StrLength(CurrentFocus)-1)="1" Then txtJob1.Focus = true CurrentFocus = "Job1" End If Here the second line (txtJob1.Focus = true) is logged as missing a semicolon. In another case the following code produced the same error: Let SortJob = Job(z-1) .....however, if I get rid of the "Let", then the error is not produced - why, I don't know. The complete code had no problems with v5.80 Thanks in advanced. Burd.