View Single Post
 
Old 06-08-2009, 11:38 PM
Bird_FAT's Avatar
Bird_FAT Bird_FAT is offline Office 2007
Expert
 
Join Date: Apr 2009
Location: South East
Posts: 271
Bird_FAT is on a distinguished road
Default

Sorry - not found this in Access yet - any chance you could explain what
Code:
crt
Code:
cnt
and
Code:
ctr
do?

As they are obviously not doing the same in Word, it might help you get an answer if you explain what you want to do - not all of us use VBA in Access as much as we do in Word!

One thing you might try is changing the loop from:
Code:
do while cnt <= 20
     me("ComboBox" & ctr).value = "I am box #" & ctr
     ctr= ctr + 1
loop
to:
Code:
While cnt <= 20
     me("ComboBox" & ctr).value = "I am box #" & ctr
     ctr= ctr + 1
Wend
Not being sure about crt, etc. I have no idea if it'll work, but the While used with Wend loop may do the trick.

Last edited by Bird_FAT; 06-09-2009 at 03:37 AM.
Reply With Quote