G
Gina Meyer
Hi.
I get always a compilation error:
telling me 'myDB As Database' would be user defined type
---------------------------------------------
Public Sub DisplayDetails()
Dim myDB As Database
Dim rs As Recordset
Set myDB = CurrentDb()
Set rs = myDB.OpenRecordset("Arbeit", dbOpenDynaset)
rs.MoveFirst
Do While Not rs.EOF
Debug.Print rs(3) 'material
rs.MoveNext
Loop
rs.MoveLast
rs.Close
myDB.Close
End Sub
----------------------------------------------
I am working inside access 2000 accessing the currently open db and would
like to retrieve some recordsets .. somehow
what am I doing wrong ???
Thanks Gina
I get always a compilation error:
telling me 'myDB As Database' would be user defined type
---------------------------------------------
Public Sub DisplayDetails()
Dim myDB As Database
Dim rs As Recordset
Set myDB = CurrentDb()
Set rs = myDB.OpenRecordset("Arbeit", dbOpenDynaset)
rs.MoveFirst
Do While Not rs.EOF
Debug.Print rs(3) 'material
rs.MoveNext
Loop
rs.MoveLast
rs.Close
myDB.Close
End Sub
----------------------------------------------
I am working inside access 2000 accessing the currently open db and would
like to retrieve some recordsets .. somehow
what am I doing wrong ???
Thanks Gina