Complex (for me) coding issue.

AlexanderBB

Well-known Member
Joined
Jul 1, 2009
Messages
2,072
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
I'm comparing a backup table in Access with popup comments in an Excel Worksheet.
First I get all the Excel comments and see if they exist in Access.
If they Exist, are they the same in Access.

Then I do the same in Access. Although they're stored differently. Columns J & O are in their own field but anything else
is in the one field, delimited by "~". Each starts with its Excel Column then the actual comment follow inside in square brackets.

If anything differs I write the details to a Listview control.

So I'm nearly there, but getting duplicate entries where they exist but are different. And having trouble sorting why.
I've tried flowcharting it but am missing something. It'somethig to do with knowing the comparison is alraedy done.
I could show my code but it's a but insane. Is the problem apparent to anyone else? Maybe there's some better logic I should be following?

Thanks for any suggestions.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
If you are doing your comparison in arrays ( which you should be for speed) rather than on the worksheet, you could delete both entries once a match has been found.
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,171
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top