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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't insert rows into table...

Status
Not open for further replies.

frosty7700

Programmer
Aug 10, 2001
95
US
I'm getting the following message when trying to insert into a table from VB:

Record(s) cannot be added; no insert permission on 'tablename'

Where tablename is the table I'm working with. However, the permissions on the database are set correctly, and other parts of my program work just fine writing to the database.

I'm just curious to see if anyone else has ever run into this. The Microsoft Knowledgebase is sketchy on this.
 
You might want to try setting the Mode property of your connection object to Read/Write--->
objConn.Mode=adModeReadWrite

I've run into similar problems with other databases. Not sure if this will fix your Access problem, but if it defaults to ReadOnly you can't do inserts.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top