Поделиться через


CDaoQueryDef::CanUpdate

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

BOOL CanUpdate( );

Возвращаемое значение

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

Заметки

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.

Требования

Header: afxdao.h

См. также

Основные понятия

CDaoQueryDef Class

CDaoQueryDef Members

Hierarchy Chart