Compile error, With use of Dim MinDb As Database

F

Fred

In a Private Sub i want to sequence throug a datasett:

Private Sub Kommando31_Click()

Dim mindb As database
Dim mittsett As recordsett

Set mindb = DBEngine.workspaces(0).databases(0)
Set mittsett = mindb.openrecordsett("kunder")
mittsett.MoveFirst
Do Until mittsett.EOF
mittsett.EditMode
mittsett!Adresse = "Helgeroa"
mittsett.Update
Loop

End Sub

But i get compile error : User defined type not defiened

Can somone explain how to solve the problem ?
Any help would be greatly appreciated.
Thanks, Fred
 

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