472,796 Members | 1,331 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Compare two fields and to find the look-alike record

Dear reader,

For matching of two fields it is required that the fields has the same
content.

But now I have the situation that two text fields has not precisely the same
content but there is some minute deference.

Now I am looking for a possibility to compare the two fields and to find the
look-alike content of the field.

Is there same code available to do this?

Thanks for any help.

Kind regards,

Simon van Beek

Apr 26 '06 #1
3 6117
Hi, Simon.
But now I have the situation that two text fields has not precisely the
same
content but there is some minute deference.

Now I am looking for a possibility to compare the two fields and to find
the
look-alike content of the field.
I'm not sure I understand your question, but perhaps you are trying to match
fields in a join expression in a query? If so, here are two examples of
doing a join on two similar fields. The last three characters in the Task
field may or may not match the three numbers in the TrainingCode field, so
the Right( ) and CInt( ) methods are used to manipulate the string value in
the Task field:

SELECT *
FROM tblTrainingCodes INNER JOIN tblTasks ON
tblTrainingCodes.TrainingCode = CInt(Right(tblTasks.Task, 3));

A wildcard can be used, as well:

SELECT *
FROM tblTrainingCodes INNER JOIN tblTasks ON
tblTasks.Task LIKE "*" & tblTrainingCodes.TrainingCode;

Much of the time, experimenting with different join expressions in Jet will
reveal an error message of "Join expression not supported."

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
http://www.Access.QBuilt.com/html/ex...ributors2.html for contact
info.
"Simon" <S.******@HCCnet.nl> wrote in message
news:44**********************@dreader29.news.xs4al l.nl... Dear reader,

For matching of two fields it is required that the fields has the same
content.

But now I have the situation that two text fields has not precisely the
same
content but there is some minute deference.

Now I am looking for a possibility to compare the two fields and to find
the
look-alike content of the field.

Is there same code available to do this?

Thanks for any help.

Kind regards,

Simon van Beek

Apr 27 '06 #2

A couple of weeks ago in this group, there was a posting and a few replies
that did just this. It discussed some algorithms that compared similar
strings and the discussion was about the speed of the algorithm in comparing
large tables.

Unfortunately, I don't have time to look for this right now, but you can try
the archive of this group searching in google.

Bas Hartkamp.
"Simon" <S.******@HCCnet.nl> schreef in bericht
news:44**********************@dreader29.news.xs4al l.nl...
Dear reader,

For matching of two fields it is required that the fields has the same
content.

But now I have the situation that two text fields has not precisely the
same
content but there is some minute deference.

Now I am looking for a possibility to compare the two fields and to find
the
look-alike content of the field.

Is there same code available to do this?

Thanks for any help.

Kind regards,

Simon van Beek

Apr 28 '06 #3

This discussion was between sat 20 march and mon 22 march this year.

search google newsgroup for : help needed for implementing fuzzy logic
(7 messages in total)

Bas Hartkamp.

"HS Hartkamp" <ha**************@wanadoo.nl> schreef in bericht
news:44***********************@news.wanadoo.nl...

A couple of weeks ago in this group, there was a posting and a few replies
that did just this. It discussed some algorithms that compared similar
strings and the discussion was about the speed of the algorithm in
comparing large tables.

Unfortunately, I don't have time to look for this right now, but you can
try the archive of this group searching in google.

Bas Hartkamp.
"Simon" <S.******@HCCnet.nl> schreef in bericht
news:44**********************@dreader29.news.xs4al l.nl...
Dear reader,

For matching of two fields it is required that the fields has the same
content.

But now I have the situation that two text fields has not precisely the
same
content but there is some minute deference.

Now I am looking for a possibility to compare the two fields and to find
the
look-alike content of the field.

Is there same code available to do this?

Thanks for any help.

Kind regards,

Simon van Beek


Apr 28 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Stephen | last post by:
I have to write a .Net application which can compare SQL Databases including things like: - DB structure, PK's, FK's, indexes and types of indexes i.e. should be able to detect if the same index...
2
by: Rachel Curran | last post by:
Please can anybody help me with the following: I have two separate excel spreadsheets that I have imported into access, each sheet holds the same fields. Both spreadsheets hold all information...
5
by: Megan | last post by:
Hi everybody- I'm helping a friend with a music database. She has an old one and is creating a new one. She wants to compare records and fields in the old database with records and fields in the...
1
by: Prakash RudraRaju | last post by:
Hi, I have recently migrated MSAccess Tables (nearly 120) to MySQL. To test successful migration I want to compare all tables. I have linked MySQL tables through ODBC connection. I want to...
8
by: Vincent | last post by:
has any one seen a program to compare mdbs'. I have ran into a few of them, but none seem to really do that job. Basically what I need to do is, take 2 access mdb's and check the differences...
9
by: geronimo_me | last post by:
Hi, I am atempting to compare part of a field with the whole of another field in access. Is this possible? Basically I have 2 tables with the following info: Table1 Field1 = MR.
4
by: Dave | last post by:
Does any one know how to compare pixels in a picture, or a dll that will allow me to do so. I need to be able to find objects in a picture. Like a table, chair, car etc. Compare a given picture say...
3
by: dotnetnoob | last post by:
i have two strings from xml file str1 = 800.7415_801.101_8.115_216.12 str2 = 800.7415_801.101_8.115_216.12_217.570 the first stream represent a xml file 800.7415_801.101_8.115_261.12.xml...
1
by: Tbell | last post by:
Hello I admit I am somewhat of a beginner at this, but I am amazed as to why none of the examples and other help I have found have allowed me to get this working. I have two tables, table1 and...
3
by: alter.fire | last post by:
Hey im trying to do the following in PHP: Connect to 2 different databases, one named complete and one incomplete. My goal is to find whats missing in the "incomplete" database. The fields...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.