Hi all,
I use Access 2007.
This code leads to "Run-time error '3061'. Too few parameters. Expected 1."
I can execute the same statement in a new query and everything works! But it does not work in VBA.
Maybe it is important to know that the view v_t2 is very complex.
Any ideas?
Thank you,
Martin
I use Access 2007.
This code leads to "Run-time error '3061'. Too few parameters. Expected 1."
Code:
Sub calc_t1_Click()
CurrentDb.Execute "INSERT INTO t1 (c1,c2) SELECT c1, c2 FROM v_t2;"
End Sub
Maybe it is important to know that the view v_t2 is very complex.
Any ideas?
Thank you,
Martin