Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

permission setting in the tables

Status
Not open for further replies.

jl3574

Programmer
Joined
Jun 5, 2003
Messages
76
Location
CA
i created a single document with database view with file support
when i go to add records into the table
m_pSet->AddNew()
it gives me statement "recordset read only"
so i use the fucntion to check if the permission is set to read only with
if(!m_pSet->CanUpdate())
and it shows that it is true..
how do i set my table permission so i can add and edit records
i tried using
pSet->Open(AFX_DB_USE_DEFAULT_TYPE,NULL,CRecordset::none);
to set the recordset to non so i can edit/delete and add
but my program crash after that
help pls....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top