Right, i have a database that creates tables using the make table query. What i want it to do is delete these tables when the exit button is clicked. The Vb i used will delete the tables if they are there, however if they have not been created i get an error message saying it cant find the object and wont close. Help!!!!! Seen this somewhere and tried it
If ObjectExists(acTable, "TABLE NAME") Then DoCmd.DeleteObject acTable, "TABLE NAME"
End If
But i get the error message saying "Sub or functioned not defined"
Is there a simple way round this as if its something that needs to be installed on access it could cause problems as when this goes live it will be used on many different machines using access.
If ObjectExists(acTable, "TABLE NAME") Then DoCmd.DeleteObject acTable, "TABLE NAME"
End If
But i get the error message saying "Sub or functioned not defined"
Is there a simple way round this as if its something that needs to be installed on access it could cause problems as when this goes live it will be used on many different machines using access.