MS Access Criteria Query using other Table fields

megan80

New Member
Joined
Feb 29, 2016
Messages
6
Hello,
I have a table containing some Email addresses which I want to check for correctness (data is being recorded after Optical recognition and it does contain errors). I am however not so sure how it would work best.

For example, in my table I have a Column containing the emails, this could look like this:

Petersmith@test.com
3456@test.com
Petersm;th@test.com
(Petersmith@test.com
<armenrodriguez@test.com
samy)fun@test.com
juliacars@test.com
@
maria-luz@test.com

We all know that Email Adresses can't contain ";" or ")" or be just an @

I started filtering on the criteria row of my Access Query like <>"*(*" but then I had to add more and more exceptions so I decided to create a table where I included a list of non permitted caracters.

How can I now apply the filter so that my Query looks at this table and if one of those caracters is contained in the Email it gets excluded or it shows a text (Bad recognition)?

Further I would need to exclude also all emails which contains numbers or are only an @ or @test.com.

Thanks a lot for your help I couldn't find any similar question. Maybe I am thinking too complicated?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,214,622
Messages
6,120,572
Members
448,972
Latest member
Shantanu2024

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top