For the date you could just use:
TwoDigitYear: Format([YourDateField],"yy")
Year is the name of a function, so it should not be used as a field name.
For parsing names, some information here could give you a starting place:
http://www.mvps.org/access/strings/str0001.htm
To put them back together you could use an update query. Make an e-mail
field, then update it to something like:
LCase([FirstName]) & "." & LCase([LastName]) & "@emailaddress.com"
As Jerry pointed out, you could use the Replace function to set up the
e-mail address, which would work too. I am assuming you want to keep the
first and last names separate. Jerry pointed out the difficulties that will
arise from certain names such as Billy Bob Thornton, but I assume you would
just take care of things like that manually considering that you are dealing
with a relatively short list of names.
By the way, you may receive the suggestion that you could just concatenate
the e-mail addresses on the fly, but that won't work in some cases such as
Billy Bob or a duplicate name. Also, if somebody's name changes you may not
be be certain the e-mail address will change at the same time.
"Gina" <(E-Mail Removed)> wrote in message
news:291A403C-737A-47E4-B42F-(E-Mail Removed)...
>I know how to get the length of a given field from a query... ie below.
>This
> gives me the last 2 digits in a year.
>
> Year: Right([tbl_Closures1.Date_Process_Started],2)
>
> What I need to do (this is something separate but related) is separate a
> field with both first and last names to two separate fields. I then need
> to
> concatenate them together with a third field that holds the data for an
> email
> extension ie. @abc.com. My end goal is to get an email address for 120
> employees (without typing them individually).
>
> The standard is (E-Mail Removed). Everything past the
> @
> sign is the same for every employee..
>
> I thought of using the above script - but I don't know how to tell it to
> stop at a space and also start at the space in order to capture first name
> and then last name.
>
> I also do not know how to concatenate in access.
>
> Thank you in advance, your help is always appreciated.
>
>
> --
> Gina