Complex (for me) coding issue.

AlexanderBB

Well-known Member
Joined
Jul 1, 2009
Messages
1,958
Office Version
  1. 2019
  2. 2016
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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
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,221,711
Messages
6,161,450
Members
451,707
Latest member
PedroMoss2268

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