PC Review


Reply
Thread Tools Rate Thread

how to capture the first letter of a in Microsoft Access? Please h

 
 
=?Utf-8?B?QmxpbmRh?=
Guest
Posts: n/a
 
      3rd Nov 2006
Dear all,

I already have a table. In this table, I have three columns for id,
firstName, LastName. How can I get three more columns for the FirstInitial,
LastInitial, and Initial? FirstInitial is the first letter of firstName,
LastInitial for the first letter for LastName, and Initial needs put the
LastInitial and FirstInitial together.

The records in my table look like:
id FirstName LastName
00021 Mary Smith
01234 John Atikins

The table I expect will look like:
id FirstName LastName FirstInitial LastInitial Initial
00021 Mary Smith M S SM
01234 John Atikins J A AJ


Can anybody help, Thanks,


Blinda








I
 
Reply With Quote
 
 
 
 
Roger Carlson
Guest
Posts: n/a
 
      3rd Nov 2006
You don't need to actually store all of these. You can use the Left()
function to find these values anytime you want. For instance, in a query you
can put:
FirstInitial: Left(FirstName, 1)
LastInitial: Left(LastName,1)
Initial: Left(LastName,1) & Left(FirstName, 1)
each in its own field column.

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L




"Blinda" <(E-Mail Removed)> wrote in message
news:8545618C-F717-494C-A5B9-(E-Mail Removed)...
> Dear all,
>
> I already have a table. In this table, I have three columns for id,
> firstName, LastName. How can I get three more columns for the

FirstInitial,
> LastInitial, and Initial? FirstInitial is the first letter of firstName,
> LastInitial for the first letter for LastName, and Initial needs put the
> LastInitial and FirstInitial together.
>
> The records in my table look like:
> id FirstName LastName
> 00021 Mary Smith
> 01234 John Atikins
>
> The table I expect will look like:
> id FirstName LastName FirstInitial LastInitial Initial
> 00021 Mary Smith M S SM
> 01234 John Atikins J A AJ
>
>
> Can anybody help, Thanks,
>
>
> Blinda
>
>
>
>
>
>
>
>
> I



 
Reply With Quote
 
=?Utf-8?B?QmxpbmRh?=
Guest
Posts: n/a
 
      3rd Nov 2006
Thank you so much, it works perfectly for me.

"Roger Carlson" wrote:

> You don't need to actually store all of these. You can use the Left()
> function to find these values anytime you want. For instance, in a query you
> can put:
> FirstInitial: Left(FirstName, 1)
> LastInitial: Left(LastName,1)
> Initial: Left(LastName,1) & Left(FirstName, 1)
> each in its own field column.
>
> --
> --Roger Carlson
> MS Access MVP
> Access Database Samples: www.rogersaccesslibrary.com
> Want answers to your Access questions in your Email?
> Free subscription:
> http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L
>
>
>
>
> "Blinda" <(E-Mail Removed)> wrote in message
> news:8545618C-F717-494C-A5B9-(E-Mail Removed)...
> > Dear all,
> >
> > I already have a table. In this table, I have three columns for id,
> > firstName, LastName. How can I get three more columns for the

> FirstInitial,
> > LastInitial, and Initial? FirstInitial is the first letter of firstName,
> > LastInitial for the first letter for LastName, and Initial needs put the
> > LastInitial and FirstInitial together.
> >
> > The records in my table look like:
> > id FirstName LastName
> > 00021 Mary Smith
> > 01234 John Atikins
> >
> > The table I expect will look like:
> > id FirstName LastName FirstInitial LastInitial Initial
> > 00021 Mary Smith M S SM
> > 01234 John Atikins J A AJ
> >
> >
> > Can anybody help, Thanks,
> >
> >
> > Blinda
> >
> >
> >
> >
> >
> >
> >
> >
> > I

>
>
>

 
Reply With Quote
 
dbahooker@hotmail.com
Guest
Posts: n/a
 
      3rd Nov 2006
the first letter of ANYTHING in Access is _F_ because MDB gets an F for
security, reliability and performance reasons



On Nov 3, 11:53 am, Blinda <Bli...@discussions.microsoft.com> wrote:
> Dear all,
>
> I already have a table. In this table, I have three columns for id,
> firstName, LastName. How can I get three more columns for the FirstInitial,
> LastInitial, and Initial? FirstInitial is the first letter of firstName,
> LastInitial for the first letter for LastName, and Initial needs put the
> LastInitial and FirstInitial together.
>
> The records in my table look like:
> id FirstName LastName
> 00021 Mary Smith
> 01234 John Atikins
>
> The table I expect will look like:
> id FirstName LastName FirstInitial LastInitial Initial
> 00021 Mary Smith M S SM
> 01234 John Atikins J A AJ
>
> Can anybody help, Thanks,
>
> Blinda
>
> I


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When I type a letter...the next letter disappears /Microsoft word Gray Microsoft Word Document Management 1 4th Mar 2010 02:25 AM
place spanish accent letter in microsoft access =?Utf-8?B?d2VlYnJpdGUgMg==?= Microsoft Access 3 30th Sep 2006 05:25 PM
how do I access microsoft word to write a letter? =?Utf-8?B?YnN0ZWlubWFuQHN5bXBhdGljby5jYQ==?= Microsoft Access 1 16th Mar 2006 05:21 PM
Give a letter automaticly a letter-number and put it in an Access. =?Utf-8?B?Y2hhbGxpZQ==?= Microsoft Access Macros 2 15th Mar 2005 05:56 PM
Access Database populating Microsoft Word Form Letter rnus5601 Microsoft Access Form Coding 2 17th Sep 2004 11:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:56 PM.