ListView Won't Dropdown With Correct Methods

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • spawn666948

    ListView Won't Dropdown With Correct Methods

    Hey, Everyone

    I can't seem to get the ListView to work on my Access 2000. I inserted
    the MS ListView Control. Let's call it "LV" for short. The, the
    Reference, MS Windows Common Controls 6.0 (SP6), is automatically
    added. The problem is when I go into code and type "me.LV.", the
    proper dropdowns don't appear. I'm expecting to see ".ListItems .",
    ".ColumnHeaders .", etc. But, instead I see, ".about.", ".applicati on."
    For the life of me, I can't figure out what's wrong. I do this in VB
    all time but needed to do it in an ACC app.

    Oh, yeah, I just tried it on my other PC with Access 2003. The result
    is the same. I can't seem to access the expected methods for the
    object.

    Thanks.

  • Douglas J. Steele

    #2
    Re: ListView Won't Dropdown With Correct Methods

    I think it's a problem with intellisense. You should still be able to use
    the methods and properties even if they don't appear.

    --
    Doug Steele, Microsoft Access MVP

    (no e-mails, please!)



    "spawn66694 8" <spawn666948-stuff@yahoo.com > wrote in message
    news:1116910782 .240285.223210@ z14g2000cwz.goo glegroups.com.. .[color=blue]
    > Hey, Everyone
    >
    > I can't seem to get the ListView to work on my Access 2000. I inserted
    > the MS ListView Control. Let's call it "LV" for short. The, the
    > Reference, MS Windows Common Controls 6.0 (SP6), is automatically
    > added. The problem is when I go into code and type "me.LV.", the
    > proper dropdowns don't appear. I'm expecting to see ".ListItems .",
    > ".ColumnHeaders .", etc. But, instead I see, ".about.", ".applicati on."
    > For the life of me, I can't figure out what's wrong. I do this in VB
    > all time but needed to do it in an ACC app.
    >
    > Oh, yeah, I just tried it on my other PC with Access 2003. The result
    > is the same. I can't seem to access the expected methods for the
    > object.
    >
    > Thanks.
    >[/color]


    Comment

    • Stephen Lebans

      #3
      Re: ListView Won't Dropdown With Correct Methods

      The Access Host OLE Container places a wrapper around the ActiveX
      control.
      Me.LV.Object.wh atever

      To make it easier for you and Intellisense to get along most developers
      explicitly unwrapp the Access control wrapper.

      At the top of your form in the General Declarations area do something
      like:

      Private lview as ListView

      In the Form's Load event do:

      set lview = Me.LV.Object


      Now Intellisense will work properly against your lview object ref.
      --

      HTH
      Stephen Lebans

      Access Code, Tips and Tricks
      Please respond only to the newsgroups so everyone can benefit.


      "spawn66694 8" <spawn666948-stuff@yahoo.com > wrote in message
      news:1116910782 .240285.223210@ z14g2000cwz.goo glegroups.com.. .[color=blue]
      > Hey, Everyone
      >
      > I can't seem to get the ListView to work on my Access 2000. I[/color]
      inserted[color=blue]
      > the MS ListView Control. Let's call it "LV" for short. The, the
      > Reference, MS Windows Common Controls 6.0 (SP6), is automatically
      > added. The problem is when I go into code and type "me.LV.", the
      > proper dropdowns don't appear. I'm expecting to see ".ListItems .",
      > ".ColumnHeaders .", etc. But, instead I see, ".about.",[/color]
      ".applicati on."[color=blue]
      > For the life of me, I can't figure out what's wrong. I do this in VB
      > all time but needed to do it in an ACC app.
      >
      > Oh, yeah, I just tried it on my other PC with Access 2003. The result
      > is the same. I can't seem to access the expected methods for the
      > object.
      >
      > Thanks.
      >[/color]

      Comment

      • spawn666948

        #4
        Re: ListView Won't Dropdown With Correct Methods

        Cool! That worked perfectly. Thanks.

        Comment

        Working...