Solved

Compiler Error

Posted on 1998-08-01
3
168 Views
Last Modified: 2010-05-03
Why does the compiler stop here.  The Data1 control is defined in the property box for itself so DBList can operate.  See the ">" for the location of compiler error.

Private Sub A()
    Dim Fake As Integer
End Sub

Private Sub DBList1_Click()
    DBList1.Recordset.Bookmark = DBList1.SelectedItem
End Sub
>>>>>>>Private Sub cmdFirst_Click()
    Data1.Recordset.MoveFirst
    Data1.BoundText = Data1.Recordset.Fields("Name").Value
End Sub
Private Sub cmdNext_Click()
    If Not Data1.Recordset.EOF Then
        Data1.Recordset.MoveNext
        If Data1.Recordset.EOF Then
            Data1.Recordset.MovePrevious
        End If
        Data1.BoundText = Data1.Recordset.Fields("Name").Value
    End If
End Sub
Private Sub cmdPrev_Click()
    If Not Data1.Recordset.BOF Then
        Data1.Recordset.MovePrevious
        If Data1.Recordset.BOF Then
            Data1.Recordset.MoveNext
        End If
        Data1.BoundText = Data1.Recordset.Fields("Name").Value
    End If
End Sub
Private Sub cmdLast_Click()
    Data1.Recordset.MoveLast
    Data1.BoundText = Data1.Recordset.Fields("Name").Value
End Sub



0
Comment
Question by:optical
3 Comments
 

Author Comment

by:optical
ID: 1467433
Thank you.
0
 
LVL 2

Expert Comment

by:percosolator
ID: 1467434
what error message are you getting?  the compiler should give you a reason why it stopped.
0
 
LVL 2

Accepted Solution

by:
swilt earned 50 total points
ID: 1467435
If the error is 'Procedure declaration does not match description of event or procedure having same name' then select the button cmdFirst at design time and change the 'index' is the properties to nothing i.e. deleted anything that is there, the index property denotes that the button is in a control array
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question