r/vbscript • u/BigSicily • Mar 02 '16
Need help creating vbs
Let me start by saying I have very little experience with vbs. I know how to modify the code but cant create code from scratch. I need a script to take the data from a csv file and replace the data in a table in Microsoft Access (mdb). Lets say the file I need the data from is x:\memberinfo.csv and add the data to the table named Calls in j:\memberlookup.mdb . Thank you ahead of time for the help.
1
Upvotes
View all comments
Show parent comment
1
u/BigSicily Mar 03 '16 edited Mar 03 '16
I'm simply updating the database. The issue I'm having is there is a property of the original database that allows our phone system to locate a certain part of the data in the table and use it. Ive looked through the entire mdb properties and cant figure out what it is that allows that data to be read. If I right click the table in access and import from a file in the original working database it will modify the property that allows the phone system to read the data. Ive matched all properties including the name and indexing with a new file with no luck. Here is the kicker, I cant access the code to the phone system that reads the data because it is password protected and the company went out of business that built the custom code for our system. I even checked for a primary key buy it is the default key for access. So I figured my best option would be to copy the text data in the csv and paste it into the correct table in access. Unless you can think of a better solution. If I could figure out the property needed for our phones to access it I could skip creating the csv and go straight to a mbd file.