isladogs
MVP / VIP
- Local time
- Today, 22:52
- Joined
- Jan 14, 2017
- Messages
- 18,764
@Jarek
The famous quote by Donald Rumsfeld (US Secretary of State under George Dubya Bush) may come in useful here:
Substitute nulls for 'knowns' in this context
You need to remember that these are artificial examples designed to prove functionality.
In order to check it works, we first need to ensure it correctly detects differences we know about
MajP & I started with two identical tables and modified these to get known differences as well as matching pairs of null fields
To keep a track of these changes, we manually populated the Differences column
In a real world example, such as the one you had at the start of this thread, you wouldn't know which fields are different or have matching nulls.
In fact you wouldn't have a Differences field!
If you did know the differences/matches, there would be absolutely no point using this code!
My added code detects the fields with matching nulls and populates that field
The buttons at the top of the form gives you 3 variations on the output of this code
All results
Unmatched records
Matching nulls
@MajP
Oops - I had included a few items from my students versions of this database
I've removed those items & fixed a couple of related code lines in the attached update
However I have just found a rather odd glitch in matched null detection using a different dataset. Will investigate further and report back
The famous quote by Donald Rumsfeld (US Secretary of State under George Dubya Bush) may come in useful here:
As we know, there are known knowns; there are things we know we know.
We also know there are known unknowns; that is to say we know there are some things we do not know.
But there are also unknown unknowns – the ones we don't know we don't know.
And ... it is the latter category that tend to be the difficult ones.
Substitute nulls for 'knowns' in this context
You need to remember that these are artificial examples designed to prove functionality.
In order to check it works, we first need to ensure it correctly detects differences we know about
MajP & I started with two identical tables and modified these to get known differences as well as matching pairs of null fields
To keep a track of these changes, we manually populated the Differences column
In a real world example, such as the one you had at the start of this thread, you wouldn't know which fields are different or have matching nulls.
In fact you wouldn't have a Differences field!
If you did know the differences/matches, there would be absolutely no point using this code!
My added code detects the fields with matching nulls and populates that field
The buttons at the top of the form gives you 3 variations on the output of this code
All results
Unmatched records
Matching nulls
@MajP
Oops - I had included a few items from my students versions of this database
I've removed those items & fixed a couple of related code lines in the attached update
However I have just found a rather odd glitch in matched null detection using a different dataset. Will investigate further and report back