Execute()


" "

short Execute(long QueryID)

Description

This function executes an SQL statement that uses an SQL verb other than SELECT and CALL.

Note:
The name of this function conflicts with the Microsoft Access 2.0 keyword Execute. If you are using MS Access 2.0, place square brackets [] around the function name.

Parameters

Name Description
QueryID The ID of the query, as returned from InitializeQuery().

Return Value

The return value will be zero if successful or non-zero if unsuccessful. If the return value is non-zero, you can call GetLastErrorString(), GetLastErrorType(), GetLastSQLCode(), GetLastSQLError(), or GetLastSQLState() to get additional error information.

Related Tasks

ExecuteEx()
ExecuteStoredProcedure()
ExecuteStoredProcedureEx()
Open()