hi everybody,
I am working on a looping construct,and i want to break it the moment a condition is satisfied.i dont know how to do this,i have tried using break,end.i want the correct syntax for this,plz.
my code is:
for i=1 to tempcnt
chksav=Dlookup("[invoice no]","mast","[supplier name]'"=tempsupp"'"
msgbox "chksav"
if(chksav=Me.invoice_no)then
BREAK
endif
next
i=i+1
end
In the place of break what should i use,plz help.....
let me know if my syntax in the looping construct is wrong anywhere; i tried finding for loops in the help but all in vain.
I am using a looping construct in access for the first time.
any help is welcome..
thnks in advance
bye,
vinanti
I am working on a looping construct,and i want to break it the moment a condition is satisfied.i dont know how to do this,i have tried using break,end.i want the correct syntax for this,plz.
my code is:
for i=1 to tempcnt
chksav=Dlookup("[invoice no]","mast","[supplier name]'"=tempsupp"'"
msgbox "chksav"
if(chksav=Me.invoice_no)then
BREAK
endif
next
i=i+1
end
In the place of break what should i use,plz help.....
let me know if my syntax in the looping construct is wrong anywhere; i tried finding for loops in the help but all in vain.
I am using a looping construct in access for the first time.
any help is welcome..
thnks in advance
bye,
vinanti