I am trying to build a query out of two tables from two different databases. Each has a common reference id. My only problem is that the contents of the two fields, are different.
One of them contains the following format:
last_name, first_name first_initial.
The other is as follows:
last_name first_name first_initial
Each table is similar to the other except that one does not have a comma between the last_name and first_name fields and no period after the first_initial field. There is also an occassional comment that is surrounded by () and names that are hyphenated on one database but not on the other.
What I want to do is to build a query that will extract (strip out) any special characters, such as periods, commas, left or right parenthesis, and hyphens from both fields. Essentially, I want to compare only the raw text information and thus, display only those records that are truly different.
Does anyone know of an easy way to do this?
I am very junior when it comes to MS Access but am trying to learn...
Thanks in advance for the help!!
One of them contains the following format:
last_name, first_name first_initial.
The other is as follows:
last_name first_name first_initial
Each table is similar to the other except that one does not have a comma between the last_name and first_name fields and no period after the first_initial field. There is also an occassional comment that is surrounded by () and names that are hyphenated on one database but not on the other.
What I want to do is to build a query that will extract (strip out) any special characters, such as periods, commas, left or right parenthesis, and hyphens from both fields. Essentially, I want to compare only the raw text information and thus, display only those records that are truly different.
Does anyone know of an easy way to do this?
I am very junior when it comes to MS Access but am trying to learn...
Thanks in advance for the help!!