Hi Corn,

Sorry for being late in replying to your query. I've been 'busy'.

On Jul 6, 2008, at 9:29 PM, Corn Walker wrote:

On Jul 5, 2008, at 1:51 PM, Chuck Pelto wrote:

I'm afraid it's a tad more complicated than that.

I need to know what items in two different ValueLists (VLs) match and what items there are in each that do not have an EXACT match in the other.

I'm a bit confused by the example and description you've posted. To help clarify I've got a few simple questions I hope you can answer fairly simply:

Do you need to know which items are in both value lists?

Yes

Do you need to know which items are in list A but not B?

Yes

Do you need to know which items are in list B but not A?

Yes

Do you need to know the line number of the mismatch?

No

In case of a value insertion what counts as a mismatch? e.g
  A = {Cat, Dog, Horse, Whale}
  B = {Cat, Dog, Gerbil, Horse, Whale}
"3 Gerbil" would be a mismatch but would "4 Horse" and "5 Whale" also be a mismatch since they no longer line up?
  If not, what do the line numbers in your example mean?

In addition, I need to know which items had been changed. E.g.,

A = {Cat, Dog, Horse, Whale}
B = {Catz, Dog, Gerbil, Horse, Whale}

The approach of using two tables—Before and After—instead of ValueLists is working out VERY well. A calc field in each tells me what the nature of the values are; no change, added, deleted, modified. The linkage is based on a record ID of the item from the one table where the information is kept during normal operations.

The editing process begins, all such values related to the type of record being modified are found and loaded into the Before table using an import. Modifications are made by the user. The user clicks on a Finished button. The system captures the current set of values in the After table. The tables look at each other based on the record IDs to determine IsValid. If not IsValid from the Before table perspective, it is Deleted. If not IsValid from the After perspective, it is Added. If the verbiage is different between the Before and After, the verbiage has been changed. Otherwise there is no change. Changes are then processed into the working database system.

It's working out quite nicely.

Regards,

Chuck

Reply via email to