Did this ever work?
I've always used Insert statements with the keyword 'Values'.
Eg:
Code:
Dim StudentName, StrSQL As String
Me.cmbStudentName.SetFocus
StudentName = Me.cmbStudentName.Value
StrSQL = "INSERT INTO Table1 (StudentName) "
StrSQL = StrSQL & "VALUES (" & "'" & StudentName & "'" & "); "
MsgBox StrSQL
DoCmd.RunSQL StrSQL
I'm not certain of this - but what I would try is getting the value you need to insert into a variable as a separate operatoin - outside your Insert statement - and then using the variable in your insert statement.
Have you changed the design of your table[s] at any point?
I've got that parameter message in the past when I've modified a Table Design and forgotten that there are queries dependent on that Table design.
Then Access doesn't see a field that used to exist and throws up the parameter message.
Hope this points you in the right direction.