I am trying to use an runsql statement to run a delete query using a string for the table. I have tried many different ways to do this with no luck. I usually get compile errors the current method I am using the error message is Cant find the table strTbl1Namewoext you are looking for. Any help is greatly apprecaited.
Code:
Dim strDelete As String
Dim strTbl1Namewoext As String
strTbl1Namewoext = "NBM_CS_Data"
strDelete = "DELETE * FROM [strTbl1Namewoext]"
DoCmd.RunSQL strDelete