Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS-Access and Delete function

Status
Not open for further replies.

RushiShroff

Programmer
Jan 23, 2002
216
IN
In my code

Code:
<%
SQLDelete=&quot;delete from m_account where Account_Id=&quot;& pAccount_Id &&quot;&quot;
		Response.Write SQLDelete
		'Response.End
		objConn.Execute SQLDelete
		SQLDelete=&quot;delete from t_leads where Lead_Account_Id=&quot;& pAccount_Id &&quot;&quot;
		objConn.Execute SQLDelete
		SQLDelete=&quot;delete from t_prospects where Prospect_Account_Id=&quot;& pAccount_Id &&quot;&quot;
		objConn.Execute SQLDelete
		SQLDelete=&quot;delete from m_contact where Contact_Account_Id=&quot;& pAccount_Id &&quot;&quot;
		objConn.Execute SQLDelete
%>
As seen again and again statement is executed.
Is there a way in access to execute all staements at one Go ?
I know that is possible in SQL server but Access Jet doesnt support Transactions.Right ?? Rushi Shroff Rushi@emqube.com
&quot;Life is beautiful.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top