Compartir a través de


CDaoQueryDef::CanUpdate

Call this member function to determine whether you can modify the querydef — such as changing its name or SQL string.

BOOL CanUpdate( );

Return Value

Nonzero if you are permitted to modify the querydef; otherwise 0.

Remarks

You can modify the querydef if:

  • It is not based on a database that is open read-only.

  • You have update permissions for the database.

    This depends on whether you have implemented security features. MFC does not provide support for security; you must implement it yourself by calling DAO directly or by using Microsoft Access. See the topic "Permissions Property" in DAO Help.

Requirements

Header: afxdao.h

See Also

Concepts

CDaoQueryDef Class

CDaoQueryDef Members

Hierarchy Chart