PC Review


Reply
Thread Tools Rate Thread

Compile error: loop without Do

 
 
=?Utf-8?B?TWogTWFubg==?=
Guest
Posts: n/a
 
      22nd Feb 2005
I get this error when I run the code or compile. The Loop DOES have a Do.
The only thing I can think of is that I have too much in the Do/Loop. Is
there a limit? I can't figure out why I get this error. Everything is where
it should be. The code ran before, then I added some more lines then it
started to give me this error.

Help
Mary
 
Reply With Quote
 
 
 
 
Roger Carlson
Guest
Posts: n/a
 
      22nd Feb 2005
This error can also happen if you have an IF statement in the loop without
an END IF or something similar to that. The key is in the new lines you
added. There is no limit to how many lines can be in a DO LOOP.

--
--Roger Carlson
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L

"Mj Mann" <Mj (E-Mail Removed)> wrote in message
news:42635CD5-295C-4946-91B0-(E-Mail Removed)...
> I get this error when I run the code or compile. The Loop DOES have a Do.
> The only thing I can think of is that I have too much in the Do/Loop. Is
> there a limit? I can't figure out why I get this error. Everything is

where
> it should be. The code ran before, then I added some more lines then it
> started to give me this error.
>
> Help
> Mary



 
Reply With Quote
 
=?Utf-8?B?TWogTWFubg==?=
Guest
Posts: n/a
 
      22nd Feb 2005
That was it. I had a bunch of If statements - hard to track those :-) I
didn't think it was a "limit" issue.

THANKS!!


"Roger Carlson" wrote:

> This error can also happen if you have an IF statement in the loop without
> an END IF or something similar to that. The key is in the new lines you
> added. There is no limit to how many lines can be in a DO LOOP.
>
> --
> --Roger Carlson
> Access Database Samples: www.rogersaccesslibrary.com
> Want answers to your Access questions in your Email?
> Free subscription:
> http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L
>
> "Mj Mann" <Mj (E-Mail Removed)> wrote in message
> news:42635CD5-295C-4946-91B0-(E-Mail Removed)...
> > I get this error when I run the code or compile. The Loop DOES have a Do.
> > The only thing I can think of is that I have too much in the Do/Loop. Is
> > there a limit? I can't figure out why I get this error. Everything is

> where
> > it should be. The code ran before, then I added some more lines then it
> > started to give me this error.
> >
> > Help
> > Mary

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dante's Inferno: Compile Error: Loop without Do Rambo Microsoft Excel Programming 5 3rd Aug 2007 03:58 PM
No current record error..loop within loop Dale Microsoft Access VBA Modules 1 4th Feb 2006 05:09 PM
Compile Error: Loop without Do cedtech23 Microsoft Excel Programming 9 1st Feb 2006 11:58 PM
VBAProject name compile error, not defined at compile time Matthew Dodds Microsoft Excel Programming 1 13th Dec 2005 07:17 PM
Compile error: Loop WIthout Do darin kelberlau Microsoft Excel Programming 1 18th Nov 2005 05:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:11 PM.