View Single Post
  #8 (permalink)  
Old June 3rd, 2011, 08:48 AM
Vayne Vayne is offline
Registered User
 
Join Date: Jun 2011
Posts: 7
Thanks: 1
Thanked 1 Time in 1 Post
Default

This is the ExecuteStatement function:

Code:
        function ExecuteStatement(strSQL as String)
		
		dim objCmd as new OleDBCommand(strSQL, Conn)

		Response.Write(strSQL)		
		
		try
			objCmd.Connection.Open()
			objCmd.ExecuteNonQuery
		catch ex as exception
			lblMessage.Text &= ex.Message
		end try

		objCmd.Connection.Close()			
	
	end function
Reply With Quote