- Local time
- Tomorrow, 04:40
- Joined
- Jan 20, 2009
- Messages
- 12,832
The procedure would read the csv a line at a time, parse the names and write the relevant records to Advisor, Client, Policy and Payment recordsets.
If the names were consistent you could still do it in a query instead of a loop.
However as I said earlier, parsing names where there is no consistent pattern is a nightmare. You have to design the logic to cover every potential format. So you have to recognise words like Mr and Mrs and progress through the algorithm accordingly.
Maybe you can find some kind developer who has pulished something you can use or adapt.
Otherwise there is no magic function for this and the only way to proceed is by working out the logic and testing your results. Even then it is virtually inevitable that you will get errors if new data is being imported regularly. No algorithm is foolproof because fools are so ingenious.
Ideally your algorithm should have some way to asses its confidence and present the its worst cases for review by the operator.
The Split function is quite useful in this kind of processing.
If the names were consistent you could still do it in a query instead of a loop.
However as I said earlier, parsing names where there is no consistent pattern is a nightmare. You have to design the logic to cover every potential format. So you have to recognise words like Mr and Mrs and progress through the algorithm accordingly.
Maybe you can find some kind developer who has pulished something you can use or adapt.
Otherwise there is no magic function for this and the only way to proceed is by working out the logic and testing your results. Even then it is virtually inevitable that you will get errors if new data is being imported regularly. No algorithm is foolproof because fools are so ingenious.
Ideally your algorithm should have some way to asses its confidence and present the its worst cases for review by the operator.
The Split function is quite useful in this kind of processing.