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  

Excluding email data



 
 
Thread Tools Display Modes
  #1  
Old December 29th, 2009, 12:39 AM posted to microsoft.public.access.queries
Cloudbuster[_2_]
external usenet poster
 
Posts: 9
Default Excluding email data

I want to make a query that will show me only parts of the email addresses in
a specific field. So, if I have an email like , and I
only want the query to show me "hotmail.com" for that record, how do I do
this? Basically, I ask b/c I am trying to group the different types of email
accounts that our clients have.
--
Cloudbuster
  #2  
Old December 29th, 2009, 01:52 AM posted to microsoft.public.access.queries
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Excluding email data

On Mon, 28 Dec 2009 16:39:08 -0800, Cloudbuster
.(donotspam) wrote:

I want to make a query that will show me only parts of the email addresses in
a specific field. So, if I have an email like , and I
only want the query to show me "hotmail.com" for that record, how do I do
this? Basically, I ask b/c I am trying to group the different types of email
accounts that our clients have.


Put a calculated field in the query:

Domain: Mid([email], InStr([email], "@") + 1

--

John W. Vinson [MVP]
  #3  
Old December 29th, 2009, 02:27 AM posted to microsoft.public.access.queries
Gina Whipp
external usenet poster
 
Posts: 3,500
Default Excluding email data

John,

Okay, I'm being picky

Let's use...

eMailDomain: Mid([email], InStr([email], "@") + 1

as *Domain* is a Reserved Word. For a complete list see...
http://allenbrowne.com/Ap****ueBadWord.html

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"John W. Vinson" wrote in message
...
On Mon, 28 Dec 2009 16:39:08 -0800, Cloudbuster
.(donotspam) wrote:

I want to make a query that will show me only parts of the email addresses
in
a specific field. So, if I have an email like , and
I
only want the query to show me "hotmail.com" for that record, how do I do
this? Basically, I ask b/c I am trying to group the different types of
email
accounts that our clients have.


Put a calculated field in the query:

Domain: Mid([email], InStr([email], "@") + 1

--

John W. Vinson [MVP]



  #4  
Old December 29th, 2009, 02:42 AM posted to microsoft.public.access.queries
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Excluding email data

On Mon, 28 Dec 2009 21:27:49 -0500, "Gina Whipp"
wrote:

John,

Okay, I'm being picky

Let's use...

eMailDomain: Mid([email], InStr([email], "@") + 1

as *Domain* is a Reserved Word. For a complete list see...
http://allenbrowne.com/Ap****ueBadWord.html


g Thanks Gina... I should have suggested "doemain" (www.doemain.com being a
favorite webcomic, alas now finished.
--

John W. Vinson [MVP]
 




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 12:34 AM.


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