Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

401 error in script is stopping script?????

Status
Not open for further replies.

phonno

Technical User
Dec 7, 2001
1
US
Sorry if this is a dup. Did not see anything else talking about this problem in other posts. I have a script that runs a find for me. Below is a basic of what the script is doing, or at least what I want it to do..

Error capture on
Enter find mode
Paste data1 to field1
Paste data2 to field2
Perform Find.
If current error = 401
then set field in another database to 0
else
set field in another database to = summary field from current database.
end if.

If I make it so that there are records to be found it works fine. If there is no records then the script dumps out and does not work. This is part of a monthly report and it is not practicle to load a few dummy records for each month. What am I doing wrong that this does not work?

Thanks in advance for any help.

Philip Honnold
 
Hi, Philip.
I cannot see anything wrong either. Just a comment or two - I always (well, mostly) use SET FIELD rather than PASTE. Also, I never test 401 because I don't trust error numbers. I test STATUS(CURRENT RECORDCOUNT) >0.
Good luck.
Paul J. Cheers,
Paul J.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top