473,387 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to extract domain information from e-mail address table?

Access 2000 (9.0.3821 SR-1) / Windows XP Pro

Hi All,

Apologies for the newbie question.

I am trying to use a simple Query to put a list of e-mail addresses in domain name order (ascending alphabetically) but cannot find a way of extracting only the domain information after the @ character in the complete address string. Of course, the addresses in the source table are of different lengths and so the position of the @ character varies.

Any help much appreciated.

TIA

Howard.
Dec 5 '07 #1
3 4620
Denburt
1,356 Expert 1GB
I am currently working on issues with an office upgrade so I am typing this off the cuff so to speak.
Place this in the field name location of the query

In VBA coding window:
debug.print Right("lol@Test.com", Len("lol@Test.com") - InStr("lol@Test.com", "@"))

or in the query...

myDomain:Right(FieldName, Len(FieldName) - InStr(FieldName,"@"))
Dec 5 '07 #2
Thanks very much for such a speedy and helpful response, it worked a treat.

Regards,

Howard.
Dec 5 '07 #3
Denburt
1,356 Expert 1GB
Your quite welcome, i'm glad I could help.
Dec 5 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Shabam | last post by:
How do you fetch just the domain name part of a variable in a script? The variable can be "http://www.domain.com/blahblah/whatever/page.htm" or "http://sub.domain.com/blahblah/whatever/page.htm"....
2
by: Phil Lamey | last post by:
Hi All, What do you do when your external DNS lists varying DNS names for the same server. I know you can specify a domain for the cookie but how can you request the cookie or a specific...
8
by: john | last post by:
I would like to develope a system using a web or non-web based client (FrontPage, Access, etc.) that can send requests to various travel web site (using our user name and password for each) and...
4
by: Prehaut Anselme | last post by:
Hi, I need to create a WebRequest with an automatic proxy I have the specification of this porxy (host & port) I ask the user their own login and password, but the proxy tells me that the...
4
by: Alex Ayzin | last post by:
Hi, I have a var-sized URL passed into my method. I need to trim it, so instead of : "123abc.MyDomain.com", I ended up with "MyDomain". The size of the initial string is not fixed. IndexOf...
3
by: deko | last post by:
I'm sure someone has passed this way before... I want to check to see is a domain name is contained in a string, and if one is, I want to extract it. In these strings, domains are always...
1
by: Prasad | last post by:
Hi, We have DB2 version 7 fixpak 14 on AIX 5.1. We have nicknames to another RDBMS tables. These nicknames have views and specification only indexes. I would like to know how we can extract...
5
by: deko | last post by:
If I have random and unpredictable user agent strings containing URLs, what is the best way to extract the URL? For example, let's say the string looks like this: registered NYSE 943 <a...
0
by: Ciaran | last post by:
Hi what's the best way to extract a var from a string based on a regexp? I can't seem to find the right function. I want to get the domain extension from any url. examples:...
2
by: kimi | last post by:
Hi ppl, I am new to PHP. I would need some information on the following: 1. a) I wanted to know from where the data is extracted and stroed in the global assocoative arrays ( specifically...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.