I have been given a problem to solve in access (export in to excel), which involves some vb. This is fine, however I'm more of a beginner in C code but not Vb so any help would be appreciated.
I have to write some code which will merge text from several lines onto one line but keep the line numbers.Here an example of some data:-
Job no.___sub no.__line.no._Text.
123________01________01_____Line of text...................
123________01________02_____Line of text........
123________02________01_____Line of text...........
423________01________01_____Line of text.....................
423________01________02_____Line of text...
423________01________03_____Line of text.................
423________02________01_____Line of text...........
423________03________01_____Line of text..................
As you can see the job no's aren't consecutive, but they could be...
Each job contains X amount of sub no's....
And each sub no. contains X amount of line no's of varying lines of text....
What I want it to look like is this..
123_______01________01. Line of text......
____________________02. Line of text....
123_______02________01. Line of text...........
etc.etc.
Please note underscore is just for illustration!
Any help would be appreciated..
Ps. I am a beginner at this so please give notes with code, also it doesn't matter whether the solution relates to access or excel, as I can import export where neccesary.Also Any pointers on how to run the code in a query.Cheers
I have to write some code which will merge text from several lines onto one line but keep the line numbers.Here an example of some data:-
Job no.___sub no.__line.no._Text.
123________01________01_____Line of text...................
123________01________02_____Line of text........
123________02________01_____Line of text...........
423________01________01_____Line of text.....................
423________01________02_____Line of text...
423________01________03_____Line of text.................
423________02________01_____Line of text...........
423________03________01_____Line of text..................
As you can see the job no's aren't consecutive, but they could be...
Each job contains X amount of sub no's....
And each sub no. contains X amount of line no's of varying lines of text....
What I want it to look like is this..
123_______01________01. Line of text......
____________________02. Line of text....
123_______02________01. Line of text...........
etc.etc.
Please note underscore is just for illustration!
Any help would be appreciated..
Ps. I am a beginner at this so please give notes with code, also it doesn't matter whether the solution relates to access or excel, as I can import export where neccesary.Also Any pointers on how to run the code in a query.Cheers
