SQL Server ASPDiscussions about ASP programming with Microsoft's SQL Server. For more ASP forums, see the ASP forum category.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the SQL Server ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Here is my code, but it is not working. The error is saying user defined type not defined.
Private Sub cmdinsertlist_Click()
Dim Rs As DAO.Recordset
Set Rs = CurrentDb.OpenRecordset("Select * From tblrefLink Where refID = " & Me.ID & " And UserID = '" & Forms.frmqcpList2.txtQcp & "'")
If Not Rs.EOR Or Not Rs.BOF Then
Do Until Rs.EOF
Rs.Delete
Rs.Update
Rs.MoveNext
Loop
Rs.Close
End If