Do..Until causing an If error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a button connected to some code. Within the code is the following...

If <expr> Then
<stmnt>
Else
Do Until <table>.EOF
statments
Exit Do
End If

I get a compile error: End If w/o block If

Any ideas?

Mike
 
mjj4golf said:
I have a button connected to some code. Within the code is the
following...

If <expr> Then
<stmnt>
Else
Do Until <table>.EOF
statments
Loop
End If

I get a compile error: End If w/o block If

Any ideas?

See above. To end a DO you need LOOP.

Tom Lake
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top