silentwolf
Active member
- Local time
- Today, 04:17
- Joined
- Jun 12, 2009
- Messages
- 570
Hi guys,
got a little lost with my class attempt of recordset Class where I would like to get some help from you please.
I have created a very simple clsDatensaetze
And here my module to test the Class
How to I need to change it to be able to use the Class to retrieve also all records?
I got alot of the same kind of Methodes and I would love to reduce my code and limit redundance Code.
Thanks for your help
Cheers
got a little lost with my class attempt of recordset Class where I would like to get some help from you please.
I have created a very simple clsDatensaetze
Code:
Dim m_rcsDaten As Recordset
Dim m_strRecordsetName As String
'
Sub OeffneRecordset(strName As String)
m_strRecordsetName = strName
Set m_rcsDaten = CurrentDb.OpenRecordset(m_strRecordsetName, dbOpenDynaset)
End Sub
And here my module to test the Class
Code:
Private Sub TestRecordset()
Dim rcsD As clsDatensaetze
Set rcsD = New clsDatensaetze
rcsD.OeffneRecordset ("SELECT *FROM AUSZUG WHERE [TestField] LIKE'*OrderNumber:*'")
'here how to I loop through all found OrderNumber in the Recordset???
' Do Until rcsD.EOF
' Debug.Print "Name: " & rcsD.Fields("TestField").Value
' rcsD.MoveNext
' Loop
Set rcsD = Nothing
End Sub
How to I need to change it to be able to use the Class to retrieve also all records?
I got alot of the same kind of Methodes and I would love to reduce my code and limit redundance Code.
Thanks for your help
Cheers