Newbies tmiller Posted December 7, 2001 Newbies Posted December 7, 2001 I have a field of students names listed Last Name, First name that has been imported from another database (ascii import with loads of other data, so I can't do a comma separated import). Is there a way to create a field that modifies the original name field as first name last name? Any help would be most appreciated.
Thom Posted December 7, 2001 Posted December 7, 2001 What do you mean by "ascii import"? Do you mean each field has a fixed width for every record? If that's the case, you should be able to import each record into one big field, then use the Middle() and Trim() functions to split the imported field into individual fields. Eg.: Last name = Trim(Middle(importField,1,30)) First name = Trim(Middle(importField,31,30)) SSN = Trim(Middle(importField,61,9)) etc. Either use Replace with a calculated result, or make each field a calc field until you are satisfied with the results, then change the calc fields into text, number, date, etc. fields; they will keep their calculated values. If you mean something else by "ascii import", could you describe the format?
Newbies tmiller Posted December 12, 2001 Author Newbies Posted December 12, 2001 thanks for your help. I was able to use a combination of Trim, Leftwords and Middle Words to get the info I needed. Sorry about the vague reference to ASCII import, what I meant to say was that the information was strictly ASCII text exported from another database. I appreciate your quick reply. Thanks again.
Recommended Posts
This topic is 8453 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