Hi,
Could anyone help me with my problem ?
Environment: Access 2000 and Sql Server 2000.
I have a stored procedure as follows:
DROP table1
SELECT alias1.field1,alias2.field2,table2.field6
INTO table1
FROM table2 INNER JOIN
(SELECT field1
FROM table3 INNER JOIN table4 ON table3.field1 = table4.field4
WHERE table3.field5 Is Not Null)
AS alias1 INNER JOIN
(SELECT field2
FROM table3
INNER JOIN table4 ON table3.field2 = table4.field4
WHERE table3.field5 Is Not Null)
AS alias2 ON (alias1.field1=@Give_name)
ON table2.field7 = alias1.field1
Stored procedure is quite complicated.
When I run this procedure in Sql Query Analyzer it works fine.
But if I run that via form's command button which runs it in VBA, it
works also fine and it makes rows into table1 . But after execution
it comes error message: "You canceled the previous operation".
In same code after above stored procedure I should execute an other
stored procedure but now it is unpossible because of error message.
In VBA I run stored procedure with DOCMD.OPENSTOREDPROCEDURE "spName",
acNormal,acEdit -command.
I think that in that error there is something to do with "INTO table1"
clause because if I take away that clause pure SELECT works fine
without that error messages.
I appreciate any help !
Colpo