Hello..
First off, please know up front that I am NOT a programmer and know enough about VBA to be rather dangerous. So, I truly hope you may be able to help.
So, I have an Access database that I am using to combine business processes used with the client plans that use them. The catch is that, at this time, the relationship has to be made manually. So, a SharePoint form was created that would allow individuals to select the process and the multiple number of plans that use that process. Once the relationship has been made, SharePoint creates a list that can be exported to either Excel or Access. Either way, the information is put into a dump table in Access.
The table below shows what some of the fields look like when exported to Access. The semi colon “;” , the pound sign “#”, and the numbers between the “#” signs are added by SharePoint when exporting. And, we have not found a way to keep them from attaching. The colon (":") is being added by us as a delimiter between the plan number and name.
Below is what I really need. A one to many relationship between the process used and the plan with each plan having their own record.
Num Process PNum Plan Name
1001 Vesting 100001 Profit Sharing/401(k) Savings Plan
1001 Vesting 100002 Compliance Team Plan
After searching the internet and threads, I did find out how to parse the data based on a character (like a comma, semi colon, or even the # sign) Here is the link to the site that contained the code I used, http://www.techonthenet.com/access/questions/parse.php. After incorporating these function and method of parsing, I found out that it will only parse once. Also, it requires fields be created for each time a character type needs parsed. The only issue with that is that the number of plans that could be in the field vary greatly.
So, what I am hoping to learn is how to parse the data based on the various delimiters, then scrub the data of any unwanted info, and then combine it into the appropriate field with the corresponding record. (if all that makes sense). In addition, I am hoping to create this so that it runs as a function off a button on the switchboard form. Not asking for much, huh? ;-) Once all the data has been parsed and scrubbed, it will then be appended to a table that will be used for BI and reporting.
We have considered having the individuals select one process and one plan at a time.. however, there are several hundred processes as well as plans. So, the combinations could go into the thousands. In addition, management is asking us to find a way to allow individuals to select one process and all the plans that match and to be able to do that through the use of SharePoint.
So, any advice and/or coding options you could pass my way would be so appreciated.
Thanks
Chris
First off, please know up front that I am NOT a programmer and know enough about VBA to be rather dangerous. So, I truly hope you may be able to help.
So, I have an Access database that I am using to combine business processes used with the client plans that use them. The catch is that, at this time, the relationship has to be made manually. So, a SharePoint form was created that would allow individuals to select the process and the multiple number of plans that use that process. Once the relationship has been made, SharePoint creates a list that can be exported to either Excel or Access. Either way, the information is put into a dump table in Access.
The table below shows what some of the fields look like when exported to Access. The semi colon “;” , the pound sign “#”, and the numbers between the “#” signs are added by SharePoint when exporting. And, we have not found a way to keep them from attaching. The colon (":") is being added by us as a delimiter between the plan number and name.
tblSharePointExport
Process
1001:Vesting
Plan Number and Name
100001
rofit Sharing/401(k) Savings Plan ;#183;#100002:Compliance Team Plan ;#66;#100003
etroleum Engineers Profit Sharing Plan ;#439;#100004
rofit Sharing Plan for Tobacco Company;#355
(imagine this being two fields in a table)
1001:Vesting
Plan Number and Name
100001



(imagine this being two fields in a table)
tblSharePointExport
1001 Vesting 100001 Profit Sharing/401(k) Savings Plan
1001 Vesting 100002 Compliance Team Plan
1001 Vesting 100003 Petroleum Engineers Profit Sharing Plan
1001 Vesting 100004 Profit Sharing Plan for Tobacco Company
(imagine this being four fields in a table) 1001 Vesting 100004 Profit Sharing Plan for Tobacco Company
After searching the internet and threads, I did find out how to parse the data based on a character (like a comma, semi colon, or even the # sign) Here is the link to the site that contained the code I used, http://www.techonthenet.com/access/questions/parse.php. After incorporating these function and method of parsing, I found out that it will only parse once. Also, it requires fields be created for each time a character type needs parsed. The only issue with that is that the number of plans that could be in the field vary greatly.
So, what I am hoping to learn is how to parse the data based on the various delimiters, then scrub the data of any unwanted info, and then combine it into the appropriate field with the corresponding record. (if all that makes sense). In addition, I am hoping to create this so that it runs as a function off a button on the switchboard form. Not asking for much, huh? ;-) Once all the data has been parsed and scrubbed, it will then be appended to a table that will be used for BI and reporting.
We have considered having the individuals select one process and one plan at a time.. however, there are several hundred processes as well as plans. So, the combinations could go into the thousands. In addition, management is asking us to find a way to allow individuals to select one process and all the plans that match and to be able to do that through the use of SharePoint.
So, any advice and/or coding options you could pass my way would be so appreciated.
Thanks
Chris
Last edited: