This method of the Recordset class finds the associated Command object when you are given only the resulting Recordset object.
public Command getActiveCommand();
Returns a Variant containing a Command object. Default is a Null object reference.
The getActiveCommand method returns a read-only value.
If a Command object was not used to create the current Recordset, a Null object reference is returned.
Use getActiveCommand to find the associated Command object when you are given only the resulting Recordset object.