Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Compiler Error

Posted on 1998-08-01
3
Medium Priority
?
172 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 100 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

597 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