crystalreporting
Instructor
I've tried the macro 'deleteobject' function, but it returns an error message if the table is not present in the database. I've tried SQL e.g.
IF EXISTS( SELECT *
FROM MSYSOBJECTS
WHERE (((MSYSOBJECTS.Name)='CREXPORT')))
DROP TABLE CREXPORT
But this gives me an error if I use it in a SQL query, or as a macro using RunSQL.
The table is an export from Crystal Reports and I'd like to have it deleted if it exists when the main form is opened.
Thanks - Peter.
Peter Shirley
IF EXISTS( SELECT *
FROM MSYSOBJECTS
WHERE (((MSYSOBJECTS.Name)='CREXPORT')))
DROP TABLE CREXPORT
But this gives me an error if I use it in a SQL query, or as a macro using RunSQL.
The table is an export from Crystal Reports and I'd like to have it deleted if it exists when the main form is opened.
Thanks - Peter.
Peter Shirley