AlanP Posted October 31, 2007 Share Posted October 31, 2007 Hi everyone...payroll recently changed how they create employee ID (EID) numbers so this is causing a problem for one of my import scripts (we change the EID to be more streamlined) used to update employees schedules from an excel file. For example the new format always has a "00" or "01" prefix e.g. 001234 we want configured to 1234 012345 we want configured to 12345 So, here is a calculation I used to try and meet this need: Right(EID ; 5) which works fine, of course, unless the EID was originally 001234 then it goes to 01234. I know there must be a way for the calc to go futher and if a 0 appears at the beginning of this newly configured EID it will drop it to appear as 1234. Any ideas? I'm sure it's something simple I used to h Link to comment Share on other sites More sharing options...
comment Posted October 31, 2007 Share Posted October 31, 2007 Try GetAsNumber ( EID ). Link to comment Share on other sites More sharing options...
AlanP Posted October 31, 2007 Author Share Posted October 31, 2007 LOL I knew it must be something simple! THANK YOU! Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6149 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now