Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Call this member function to remove a field and make it inaccessible.
void DeleteField(
LPCTSTR lpszName
);
void DeleteField(
int nIndex
);
Parameters
lpszName
A pointer to a string expression that is the name of an existing field.nIndex
The index of the field in the table's zero-based Fields collection, for lookup by index.
Remarks
You can use this member function on a new object that has not been appended to the database or when CanUpdate returns nonzero.
For related information, see the topic "Delete Method" in DAO Help.
Requirements
Header: afxdao.h