-
August 1st, 2004, 08:56 AM
#1
Delete records produces page error
I'm trying to delete records from an access table using ADO. Everything works fine on my test server but when I put it into production it produces a "The page cannot be displayed" error. All other ADO commands such as INSERT and SELECT within the same script work ok.
Here is the code, any help appreciated:
dim dsn
dim Conn
dsn="DBQ=" & Server.Mappath("access_db\db.mdb") & ";Driver={Microsoft Access Driver (*.mdb)};"
Set Conn = Server.CreateObject("ADODB.Connection")
conn.mode=3
Conn.Open dsn
sql="delete from contacts where contact_id=1;"
Set RS = Conn.Execute(SQL)
-
August 10th, 2004, 01:14 AM
#2
Hi ,
Check for the permission of the database by right clicking it..and viewing the permission ..you shld have full permission to delete the data..so do check that...
might be one of the reason..
Niranjan C
-
August 10th, 2004, 02:12 AM
#3
you also might want to verify the data you are trying to delete.
R. Thomas
"Be anxious for nothing, but in everything by prayer and supplication, with thanksgiving, let your requests be made know to God; and the peace of God, which surpasses all understanding, will guard your hearts and minds through Christ Jesus."Philippians 4:6-7
"Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|