Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compare Difference btwn 2 Text fields

Status
Not open for further replies.

crystalfun

Programmer
Feb 8, 2001
39
0
0
US
I am testing a data conversion using reports from legacy and the new system. I want to see if the fields imported properly.

Field 1 is a text field and looks like: 12345-123
Field 2 is a text field and looks like: 12345-123

I want to compare Field 1 to Field 2 to look for a difference. How can I do this if both fields are text?
 
I feel there is more to your question than you are saying.
In a query just do:
Result:field1=field2

This will produce -1 for true and 0 for false.
 
You may use any comparison operator with text fields plus the Like operator.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top