RecordsetWrapper

  • Thread starter PC User via AccessMonster.com
  • Start date
P

PC User via AccessMonster.com

What is a RecordsetWrapper? I can't seem to find the reference library for
this? I saw a sample code and I'm curious as to what it does in case it
could be usefult to me in my code.

Function Delete(JournalSortId As Long) As Boolean
Dim rsw As New RecordsetWrapper
If rsw.OpenRecordset("tblJournalSort", "[JournalSortId] = " &
JournalSortId) Then
Delete = rsw.Delete
End If
End Function

Does anyone know about how to use a RecordsetWrapper?

Thanks,
PC
 
M

Marshall Barton

PC said:
What is a RecordsetWrapper? I can't seem to find the reference library for
this? I saw a sample code and I'm curious as to what it does in case it
could be usefult to me in my code.

Function Delete(JournalSortId As Long) As Boolean
Dim rsw As New RecordsetWrapper
If rsw.OpenRecordset("tblJournalSort", "[JournalSortId] = " &
JournalSortId) Then
Delete = rsw.Delete
End If
End Function

Does anyone know about how to use a RecordsetWrapper?


Never heard of it so I assume it's a custom class defined
somewhere else in whatever sample code you were looking at.
You would have to find the class and analyze it to see what
it does or doesn't do.
 
T

Tom van Stiphout

On Sat, 17 Apr 2010 10:09:34 -0500, Marshall Barton

You are correct; it's in the Northwind sample database for Access
2007.
It's a wrapper around the DAO.Recordset object. It supports CRUD
operations against a recordset object.

-Tom.
Microsoft Access MVP

PC said:
What is a RecordsetWrapper? I can't seem to find the reference library for
this? I saw a sample code and I'm curious as to what it does in case it
could be usefult to me in my code.

Function Delete(JournalSortId As Long) As Boolean
Dim rsw As New RecordsetWrapper
If rsw.OpenRecordset("tblJournalSort", "[JournalSortId] = " &
JournalSortId) Then
Delete = rsw.Delete
End If
End Function

Does anyone know about how to use a RecordsetWrapper?


Never heard of it so I assume it's a custom class defined
somewhere else in whatever sample code you were looking at.
You would have to find the class and analyze it to see what
it does or doesn't do.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top