Hey guys,
I'm not sure what I'm doing wrong, but when I try and run the following code.....I get the following message "compile error: Loop without Do statement". As you can see from the following code, I have a Do statement....but I'm not sure where the problem is.
I'd appreciate any help anyone can give, thanks.
jodym43
Do While rst.NoMatch = False
Set rst = dB.OpenRecordset(strSQL)
If rst.NoMatch = False Then
Set MapId = rst("MapID"
Debug.Print "mapID is " & MapId
rst.Edit
rst("MapNeedPurchase"
.Value = "False"
rst("MapChkPrintOrder"
.Value = "False"
rst("MapOrdered"
.Value = "True"
rst("MapOrderDate"
.Value = Date
rst.Update
Forms!Maps_Order.Refresh
Else: Exit Do
Loop
I'm not sure what I'm doing wrong, but when I try and run the following code.....I get the following message "compile error: Loop without Do statement". As you can see from the following code, I have a Do statement....but I'm not sure where the problem is.
I'd appreciate any help anyone can give, thanks.
jodym43
Do While rst.NoMatch = False
Set rst = dB.OpenRecordset(strSQL)
If rst.NoMatch = False Then
Set MapId = rst("MapID"
Debug.Print "mapID is " & MapId
rst.Edit
rst("MapNeedPurchase"
rst("MapChkPrintOrder"
rst("MapOrdered"
rst("MapOrderDate"
rst.Update
Forms!Maps_Order.Refresh
Else: Exit Do
Loop