Question : Read vertical data

Hi;
In the attach file you see an example of the data I have
I need to fill in the description in table tbSuseExl with the description in table "DESCRIPTION"
The only criteria I have in table "DESCRIPTION"
Are:
Each item should start with the row "NOMENCLATURE"
And end with a row starts with the word "DESCRIPTION :"
My key for each item is "STOCK NUMBER"
Notice that the real stock number is always tow rows after the row has the word  "STOCK NUMBER"
The description I need may store in many rows after each others
See the sample data in the attach file please

Answer : Read vertical data

Hi,

Here is your solution. In the attached (modified) database file, please execute a Macro named "Macro1", which completes the job by your specification above. There is a module named "Module1" which defines a function "InsertDesc()". This is the function executed. It can be called as many times as it is needed.

Regards,
Zlatko.
 
 
Random Solutions  
 
programming4us programming4us