I am trying to store the values inside an access database from excel using vba.
I have a form in Excel where I get the Inputs from the User.
On VBA, In the Locals window, I could see the values assigned to the object as below,
Name = Mike
Age = 23
Occupation = Student
On the Access database, I have a table called as UserTable
which has columns called as ID, Name, Age, Occupation
and now how do I pass the values from VBA to Access database.
I would want to add the value record by record and faster at the same time.
Here is where I am getting the error
strSQL = "PARAMETERS [Name] TEXT(255), [Age] INTEGER, [Occupation] TEXT(255);" _
& " INSERT INTO UserTable([User Name], [User Age], [User Occupation]);"
Please help me with this on my learning.