Hi
my application creates a table using this code:
I need to change the table name 'Output' by a name specified via inputbox, but i'm not sure how it can be achieved.
(something to this effect but it does not work)
my application creates a table using this code:
Code:
strSql = "CREATE TABLE Output (Name Text, Month Number)"
DoCmd.RunSQL strSql
(something to this effect but it does not work)
Code:
DIM tblName As String
DIM strSql As Strng
tblName=InputBox("Table Name")
strSql = "CREATE TABLE '" & Output & "' (Name Text, Month Number)"
DoCmd.RunSQL strSql
Comment