what does this mean and what do i put

AWilderbeast

Registered User.
Local time
Today, 07:58
Joined
Sep 13, 2005
Messages
92
Below is some code on a form for a button to work and when i run the form it says i '' user define type, not defines and highlights the DAO.Database part.

The tutorial that i got that from says i need to set the DAO but i dont know what that is. Can someone help me out?

Private Sub FillOptions()
On Error GoTo ErrorPoint

' Fill in the options for this switchboard page
Dim dbs As DAO.Database
Dim rst As DAO.Recordset
Dim strSQL As String
Dim intOption As Integer
Dim dbsCount As DAO.Database
Dim rstCount As DAO.Recordset
Dim intI As Integer
 
You'll have to check the references and make sure you include one of the Microsoft DAO libraries. I usually includ the DAO 2.5/3.51 Compatibility Library
 
Go to any module ( design mode ) then select Tools -> References
 

Users who are viewing this thread

Back
Top Bottom