CDaoQueryDef::SetName
Call this member function if you want to change the name of a querydef that is not temporary.
void SetName(
LPCTSTR lpszName
);
Parameters
- lpszName
A string that contains the new name for a nontemporary query in the associated CDaoDatabase object.
Remarks
Querydef names are unique, user-defined names. You can call SetName before the querydef object is appended to the QueryDefs collection.
Requirements
Header: afxdao.h