hi there,
I am working in access 2002.
my code is:-
for i=1 to tempcnt
chksav=Dlookup("[invoice no]","mast","[supplier name]'"=tempsupp"'"
msgbox "chksav"
if(chksav=Me.invoice_no)then
Exit For
endif
next
i=i+1
end
in the above code i want to find recrods from my dbase where the supplier name field=the supplier name chosen by the user.but i am able to retrieve the same record every time the loop runs.i have different no. of records satisfy the condition.there are minimum 3 records for every such condition but always only the first find is returned.
could anybody plz. help me.
thnks in advance
bye vinanti
I am working in access 2002.
my code is:-
for i=1 to tempcnt
chksav=Dlookup("[invoice no]","mast","[supplier name]'"=tempsupp"'"
msgbox "chksav"
if(chksav=Me.invoice_no)then
Exit For
endif
next
i=i+1
end
in the above code i want to find recrods from my dbase where the supplier name field=the supplier name chosen by the user.but i am able to retrieve the same record every time the loop runs.i have different no. of records satisfy the condition.there are minimum 3 records for every such condition but always only the first find is returned.
could anybody plz. help me.
thnks in advance
bye vinanti