I have a number of linked tables in my database. The user needs to be able to delete the contents of any of these tables when required. Is it possible to pass the name of a selected table to SQL? I've tried the following but it does not work:
Table name is selected from a list box and stored as strPeriod
ex:
[ strPeriod = "April 2006" 'name of table selected from list
strSQL = "Delete strPeriod.* FROM strPeriod"
DoCmd.RunSQL (strSQL) ]
Thanks
Table name is selected from a list box and stored as strPeriod
ex:
[ strPeriod = "April 2006" 'name of table selected from list
strSQL = "Delete strPeriod.* FROM strPeriod"
DoCmd.RunSQL (strSQL) ]
Thanks