Check code

mjdavie

Registered User.
Local time
Today, 13:34
Joined
Sep 17, 2001
Messages
34
Could somebody please check my code

I keep getting the error message "Loop without Do" but I just can't seem to resolve it and it's driving me mad.

Dim dbs As Database
Dim rst As Recordset

Set dbs = CurrentDb()
Set rst = dbs.OpenRecordset("qryMill")

Do While rst.EOF

If [Mill Cycle] > [Weeks Stock] Then
[Early Warn].Value = "OK"
Else
[Early Warn].Value = "#"

Loop

rst.MoveNext

Thanks in advance
 
You are missing an End If after this line: [Early Warn].Value = "#" .
 
Check Code

Thanks Mile that workks fine
 

Users who are viewing this thread

Back
Top Bottom