Not sure if what I'm trying to acheive is possible in access but thought I'd ask!
I've been tasked with creating a system to generate a standardised report and store the data in a database for creating monthly stats and general manipulation. Currently people manually write the reports and follow a basic template then once complete manually enter the data into a spreadsheet.
Each of these reports contain basic information about a customer then list multiple payments followed by some other information. It sounds somewhat similar to a receipt, but a lot more detailed. These are then sent on to a manager for authorisation.
The bit I'm currently stuck at is the getting the payment data into access, it comes from a text based system which we can copy and paste. Each line is a separate payment and each line follows the same format, for example:
In the example above the first 8 digits are the account number, characters 1-8, the payment amount is always characters 10-17 and so on. So each part of the data is always in the same place.
So I've created a form to enter all the data into to create the report and collect the data. To collect the payment data I have added an unbound multiline textbox that the data can be pasted into. The idea then being that you click a button and it will take each line of the text and break it down into its elements and enter them in to fields of the sub-form and do this for each line, each line being a new record in the payments sub-form.
I've looked for ways to do this online, and the closest I've found is this:
social.msdn.microsoft.com/Forums/en-US/7c3f5db5-72d7-427c-9fdf-f8a16d172ae8
I've not been able to get it to work, due to various errors, also this separates each line depending on spaces. Which means I'd have problems when it reads the description, which could have multiple spaces in and actually is not needed for the report.
Does anyone have any suggestions or about to point me in the direction of a better example I can work from.
I've been tasked with creating a system to generate a standardised report and store the data in a database for creating monthly stats and general manipulation. Currently people manually write the reports and follow a basic template then once complete manually enter the data into a spreadsheet.
Each of these reports contain basic information about a customer then list multiple payments followed by some other information. It sounds somewhat similar to a receipt, but a lot more detailed. These are then sent on to a manager for authorisation.
The bit I'm currently stuck at is the getting the payment data into access, it comes from a text based system which we can copy and paste. Each line is a separate payment and each line follows the same format, for example:
Code:
Acct no. Amount Description Date Time
10000000 1.00 payment one 18.10 13.30
20000000 100.00 2nd payment today 17.10 12.10
30000000 10000.00 This is also a pymnt 16.10 09.30
In the example above the first 8 digits are the account number, characters 1-8, the payment amount is always characters 10-17 and so on. So each part of the data is always in the same place.
So I've created a form to enter all the data into to create the report and collect the data. To collect the payment data I have added an unbound multiline textbox that the data can be pasted into. The idea then being that you click a button and it will take each line of the text and break it down into its elements and enter them in to fields of the sub-form and do this for each line, each line being a new record in the payments sub-form.
I've looked for ways to do this online, and the closest I've found is this:
social.msdn.microsoft.com/Forums/en-US/7c3f5db5-72d7-427c-9fdf-f8a16d172ae8
I've not been able to get it to work, due to various errors, also this separates each line depending on spaces. Which means I'd have problems when it reads the description, which could have multiple spaces in and actually is not needed for the report.
Does anyone have any suggestions or about to point me in the direction of a better example I can work from.