A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

cutting off all but the first two letters



 
 
Thread Tools Display Modes
  #1  
Old May 10th, 2008, 05:37 PM posted to microsoft.public.access.queries
paul69
external usenet poster
 
Posts: 8
Default cutting off all but the first two letters

Hi,

I have Access 2002. I want to create a query so that only the first two
letters of an email appear. How do I create such a query?

Thanks in advance,

Paul
  #2  
Old May 10th, 2008, 06:31 PM posted to microsoft.public.access.queries
fredg
external usenet poster
 
Posts: 4,386
Default cutting off all but the first two letters

On Sat, 10 May 2008 09:37:00 -0700, paul69 wrote:

Hi,

I have Access 2002. I want to create a query so that only the first two
letters of an email appear. How do I create such a query?

Thanks in advance,

Paul


Your message is not very clear to someone who cannot see your
computer.
Try something like this:

NewColumn:Left([FieldName],2)
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
  #3  
Old May 10th, 2008, 06:33 PM posted to microsoft.public.access.queries
Naz
external usenet poster
 
Posts: 78
Default cutting off all but the first two letters

Assuming by e-mail you simply mean a field that store someones e-mail address.
All you do is in a query add the table that has the email field and create
an expresion
So instead if dragging a field down from a table simply type in
Twochars:left([Emailfieldname],2)

where emailfieldname is the name of the feild that contains the email.

HTH
--

_______________________
Naz,
London


"paul69" wrote:

Hi,

I have Access 2002. I want to create a query so that only the first two
letters of an email appear. How do I create such a query?

Thanks in advance,

Paul

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:13 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.