Code: Select all
...
Set QRY = DB.QueryDefs("ESTRAI")
QRY.Parameters("[INIZIO]").Value = CDate(Me.DAL.Text)
QRY.Parameters("[FINE]").Value = CDate(Me.AL.Text)
...
In effect the name of of table is dinamic but the query is the same.
Note:
I just have a string var TABELLA="2013"