You will have to use a variable and pass the variable using Code.
I wrote this to insert a string into a table on the fly using a users input. You can adapt it for what you need. Or at least get some ideas as to the direction you need to go:
Option Compare Database
Option Explicit
Dim strResponse As String
Dim strSQL As String
strResponse = InputBox("New table name?")
strSql = "INSERT INTO TblAccessDate ([Date],[Time],[TableName])" & _
" VALUES (#" & CStr(Date) & "#, #" & CStr(Time) "#, '" & strSaveAs & "');"
|