Validate matching fields for join
kkeller
Forums
I am currently working on a script, which contains one step where two databases are joined. I was hoping that someone may have a way to validate that my 2 fields to match on, are identical and able to be matched on. I currently have parts of the script that validate 'numeric' or 'date' fields, but am unaware how to validate the match. Thanks in advance for any help!.
Sub Main
Hi Kyle,
What you need to do is get the field type before performing the join and then comparing the two field types to make sure they are the same. Here is some example code that does this. This uses the sample files for the example.