ExecuteSQL()

Syntax:

ExecuteSQL( Command )

Return:

The Return Value varies depending upon the SQL statement executed.

For a SELECT statement the Return Value is a new Record Set object; if there is an error the Return Value is false.

For an UPDATE or INSERT statement, the Return Value is true if the action worked properly and false if it did not.

Parameters:

Command – must be a valid SQL statement. This parameter is required.

Remarks:

This function will execute a valid SQL statement, such as a SELECT or INSERT INTO command for the specified database.

image\Script_Button.jpgExamples