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

How to delete records

Status
Not open for further replies.

fcl22

Technical User
Apr 16, 2003
14
US

I"m connected to a sql server table and it does not allow me to delete records, is the configuration on SQL or MS access.

thanks
 
When you say connected is this through an Access Project or ODBC? In either case, you need delete permission on the table. If ODBC, you need an unique index and key on the table.
 
hi,

If your looking directly at a SQL table you need a primary key field. Like Row_ID

This will allow you to delete from a table.

Or

If from code.

docmd.runsql "delete from tablea"

or a stored proceedure

hth
 
Thank you for the infprmation. I had not set a primary key. Your information was very helpful
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top