I have a set of source data that looks something like this:
Project Series Paper
Unit 1 1806 1
Unit 1 1806 2
Unit 1 1806 3
Unit 2 1903 1
Unit 2 1903 2
Unit 2 2003 1
Unit 2 2003 2
Unit 2 2103 1
Unit 2 2103 2
Unit 3 1806 1
Unit 3 1906 1
This data normally lives in a database and is huge. In the order of half a million rows.
We also have users that will input a combination of Project, Series and Paper then they will click submit.
Prior to the data being submitted, I would like the data to be validated from the source data and will tell the user if the combination they have entered is valid or not.
Something like this:
Project Series Paper Valid?
Unit 1 1806 1 No
Unit 2 1906 2 Yes
The easiest solution that I can think of is to concatenate
the data and do a lookup on each. However, this will create unnecessary heavy load on the database, where a new column will have to be created with half a million rows of data...
I was wondering if there is a loop function in VBA that would check the combination from the source data and let the user know if it is valid or not?
I really appreciate your input.