Can anyone spot what is where I am going wrong with this code. It is coming up with 'run time error 3061 - too few parameters. expected 3' error.
It is just supposed to create a table (which it appears to be working fine) and then insert some simple data into it.
Greatly appreciate all your help in advance
It is just supposed to create a table (which it appears to be working fine) and then insert some simple data into it.
Code:
Sub Temp() Dim MyDB As DAO.Database
Set MyDB = CurrentDb()
MyDB.Execute "CREATE TABLE tempTable (F1 STRING, F2 INTEGER, F3 STRING, F4 STRING);"
MyDB.Execute "INSERT INTO tempTable (F1, F2, F3, F4) Values (a, 0, b, c)"
End Sub
Greatly appreciate all your help in advance