G
Guest
I have a temp table that update an other table1 if a
condition is true
after updating table one i want the record withe the
condition true in temp table to be deleted
strSQL = "INSERT INTO [table1] (..
Select [temp table].*
where condition true
strSQL = "SELECT [temp table].* INTO [new work table]
FROM [temp table] WHERE condition=False));
strSQL = "SELECT [new work table]* INTO [temp table)]
DoCmd.DeleteObject acTable, "new work table"
my question is if there is any easier way to do it
because whene i run the code i get an error message "temp
table already exist" and i can not delete it
thak you
condition is true
after updating table one i want the record withe the
condition true in temp table to be deleted
strSQL = "INSERT INTO [table1] (..
Select [temp table].*
where condition true
strSQL = "SELECT [temp table].* INTO [new work table]
FROM [temp table] WHERE condition=False));
strSQL = "SELECT [new work table]* INTO [temp table)]
DoCmd.DeleteObject acTable, "new work table"
my question is if there is any easier way to do it
because whene i run the code i get an error message "temp
table already exist" and i can not delete it
thak you