dharkin Posted June 30, 2004 Posted June 30, 2004 Hello Forum, I want to create a login from the first name and last name field. I want to pull the first initial from the first name field and first seven characters from the last name field to create an eight character login to be displayed in a login field. Can some tell me how to perform this calculation Thanks in advance Don
Reed Posted June 30, 2004 Posted June 30, 2004 Use the Left() function. Left(FirstName;1) & Left(LastName;7) If you want you can then make accounts using these logins with a looping script. Dana
dharkin Posted June 30, 2004 Author Posted June 30, 2004 Taking it a step further Dana if you have the time to respond. How can I keep the first letter of the first name and the first letter of the last name all lower case. Also, can you give me an idea of the looping script you speak of? Thanks for your help Don
Reed Posted June 30, 2004 Posted June 30, 2004 Lower(Left(FirstName;1)) & Lower(Left(LastName;7)) Loop create account(login field;some initial password) next record(exit after last) End Loop The script would cycle through records in the table that contains each login.
Recommended Posts
This topic is 7618 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