This little script helped me when I was was adding missing orders back into actinic, after recovering from a corrupt database.
It simply updates the next offline order number by changing the value in the script.
ALWAYS BACKUP YOUR SITE BEFORE RUNNING ANY SCRIPTS LIKE THIS. AND MAKE SURE YOU DON'T SET A NUMBER THAT ALREADY EXISTS, YOU NEW OFFLINE ORDER WILL FAIL.
Paste this into a new text document in notepad, Update the starred values above, and save the file as .vbs.
Then just double click the file to run it. I would advise exiting actinic before running this, When you go back into actinic, and click NEW ORDER - the number should reflect the number you entered.
It simply updates the next offline order number by changing the value in the script.
ALWAYS BACKUP YOUR SITE BEFORE RUNNING ANY SCRIPTS LIKE THIS. AND MAKE SURE YOU DON'T SET A NUMBER THAT ALREADY EXISTS, YOU NEW OFFLINE ORDER WILL FAIL.
Code:
Set MyConn = CreateObject("ADODB.Connection") MyConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=*PATH TO YOUR DATABASE FILE.MDB*" MyConn.Execute "UPDATE SetupInfo SET sData=*5 DIGIT ORDER NUMBER* WHERE sName='Last Offline Order Sequence Number'" MyConn.Close
Then just double click the file to run it. I would advise exiting actinic before running this, When you go back into actinic, and click NEW ORDER - the number should reflect the number you entered.
Comment