I'm a SQL Server developer by day, and struggling to tackle an Access issue which I would usually handle with a stored procedure.
I need to create a table on the fly (using VBA) and add the column names based on data from another table. I've created a Data Definition query and thought that I could get away with enclosing a variable name in square brackets and then use an ADO command object to execute the query with a parameter object to append the required column name. Not so!!
Is there a way that I can use a parameter in a Data Definition query, in the same way that I could use a parament in a stored procedure.
Please help before I lose all of my hair.
Thanks
I need to create a table on the fly (using VBA) and add the column names based on data from another table. I've created a Data Definition query and thought that I could get away with enclosing a variable name in square brackets and then use an ADO command object to execute the query with a parameter object to append the required column name. Not so!!
Is there a way that I can use a parameter in a Data Definition query, in the same way that I could use a parament in a stored procedure.
Please help before I lose all of my hair.
Thanks