Steve K
posted this on January 11, 2011 11:33
When you update a supplier invoice and you receive the error message "Run Time Error 5". To resolve this issue, you will need to do the following: If error persists then user file corrupt If error persists overwrite the user file if using pastel V6 or pastel V7 If using pastel V8 or pastel V9 send data for datafix so user file can be overwritten
- make a backup of the data
- close pastel
- clicking on start > search > all files and folders
- type accdflt*.* and where it says look in click on the browse button and browse on the pastel company directory
- delete all numeric ending files eg accdflt.002
- do not delete .dat files and .db files
- repeat the search for acccntrl*.* and delete all numeric ending files
- do not delete .dat and .db files
- once defaults and controls deleted check the supplier invoices and ensure all supplier invoices have an invoice number
- recreate the user; by logging in as the supervisor click on setup > users and passwords and create the user again
- open C\pastelxx\custom\language
- right click and copy accuser.eng
- click back twice, double click on the company folder
- right click and rename accuser.dat to accuser.old
- right click anywhere on the white space and left click and paste
- right click and rename accuser.eng to accuser.dat
- open pastel and recreate all the users and document numbers