|
-
Sep 12th, 2001, 11:08 AM
#1
Thread Starter
New Member
what could be the Problem? -SQL
I want to delete records that are returned By a variable- prompt
I have this code under a procedure -CancelReservations:
Dim rec As New ADODB.Recordset
Dim Mysql As String
Mysql = "DELETE Accounts.*,Reservations.* "
Mysql = Mysql & "FROM accounts,reservations "
Mysql = Mysql & "WHERE reservations.Name
IN (" & prompt & ")"
Set rec = Cnca.Execute(Mysql)
I am getting the following error:
"Record is deleted"
how can I Avoid this error? any ideas?
hos
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
|