I'm writing a BOI script to create Inventory Adjustment Transactions. I want to use the next available entry number so I have the GetNextEntryNo(refNo$) function in my script. What I can't figure out is what the "refNo$" needs to be. Does anyone have a listing of the valid values? I tried "6" but that doesn't work. It returns a "0" to my variable. Thanks.