I am trying to insert 2 values from variables into a table via SQL, the code finishes without error but the entries are not showing up in the table.
I tried executing the code within the immidate window but that gave me an error about my brackets (Don't really know how to enter the prompt properly there), so I changed my query from having variables to having set values to insert, but it still does not work nor does it give an error.
I made sure I had no "On Error" in my code and tried to build in an error manually. Syntax errors are shown as usual so I am assuming that everything is fine with error messages.
'Table Columns: ID, ProjectID, Versionnumber
SQL = "INSERT INTO tblVersion " & _
"(ProjectID, Versionnumber) " & _
"VALUES (1, 'v3.0');"
Currentdb.Execute SQL
I expect the Value to be shown when I open the table. Instead, nothing happened at all.
Currentdb.Execute SQL, dbFailOnError. Else, any error will cause a silent fail.