DBGetNewQuery
DBGetNewQuery Create a QueryRecord
#include <DatabaseAccess.h> Data Access Manager
OSErr DBGetNewQuery( queryID, query);
short queryID ; specifies a 'qrsc' resource
QueryHandle *query ; a handle to the query record.
returns Error Code; 0=no error
The DBGetNewQuery function creates a QueryRecord from the 'qrsc'
resource with the resource ID you specify in the queryID parameter.
queryID specifies the 'qrsc' to use in creating the QueryRecord.
query returns a handle to the QueryRecord. The resource file that
contains the 'qrsc' resource must remain open until after the
DBStartQuery function has completed execution.
Returns: an operating system Error Code.
noErr (0) QueryRecord built successfully
rcDBPackNotInited (-813) The InitDBPack function has not yet been called

Notes: If you do not already know the resource ID of the 'qrsc' resource (for
example, if you call the StandardGetFile procedure to let the user select
the query document), you can use Resource Manager routines to
determine the resource ID.