Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Compile Error

    Trying to run a demo db and getting error on following startement:

    Compile Error: Method or data member not found

    cboPage.AddItem i

    What References am I missing?

    Thanks, John

    <pre>Sub ArrayPage()
    Dim i As Integer

    iPageSize = 12
    ipages = Round(UBound(prods) / iPageSize)

    If ipages * iPageSize <= UBound(prods) Then _
    ipages = ipages + 1
    If ipages < 1 Then ipages = 1
    ReDim selections(1 To ipages)

    For i = 1 To ipages
    cboPage.AddItem i
    Next i
    Me!cboPage.Value = 1
    Call GetArrayPage(1)
    End Sub
    </pre>


  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Compile Error

    The AddItem method for list boxes and combo boxes was introduced in Access 2002 (aka XP). It doesn't work in Access 2000.

  3. #3
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Compile Error

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •