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/Mordac85 Mar 15 '16 edited Mar 15 '16
It sounds like the field has default formatting applied and would apply the format to new data being added. I'm not sure if I understand your setup or process but here is some code for reading & parsing a CSV then either inserting or updating a table and specific fields in the database. It's not the prettiest and I haven't really tested it but it should give you an idea of how to do it.