I need to run a query that would pull information from a field that has 2 types of data .
Field is address and has 123 avenue as data and bb@yahoo.com.
I need to
Here is the query that fetches the two different fields:
select iif(field like '*@*', field, NULL) as email,
iif(field like '*@*, NULL, field) as address
from t
The usage of like
in Access is a bit different from other databases.
I would suggest that you create a view with this logic. If you actually want to modify the table, you will have to add columns and populate them with logic like the above.