Results 1 to 7 of 7
  1. #1
    dccjr's Avatar
    dccjr is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2012
    Location
    Colorado Springs, CO
    Posts
    138

    Object List Problem

    Ok, this is a complete Noob problem. Whenever I have used the VBA Editor in Access and type something like Me. it has a floating window woth all of the objects in it. Or properties for the object. I now get nothing when I type. Have I inadvertantly changed a setting, or is there a error in the code above that is preventing it?



  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Check

    Tools/Options/Editor/Auto List Members
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Estuardo's Avatar
    Estuardo is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2012
    Location
    Portugal
    Posts
    22
    G'd evening,
    In the vba editor go to the main menu select tools-->options-->editor under the Editor tab find the radio button Auto List Members and mark and enable that option. (Sorry Paul, i was typing when you posted )

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    You're too slow my friend!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    dccjr's Avatar
    dccjr is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2012
    Location
    Colorado Springs, CO
    Posts
    138
    It is enabled, but still nothing. I have the following at the top of the Code:
    Code:
    Option Compare Database
    Option Explicit
    Public cenSQL, endSQL As String
    Public intSetNo As Integer
    Set cenSQL = "','"
    Set endSQL = "');"
    If I comment out all but the Option lines, it works. Am I not declaring these global variables correctly?

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    cenSQL is not explicitely declared as String so it will default to variant. Unlike some languages, in VBA all variables must be individually declared or they will be variant type.

    Public cenSQL As String, endSQL As String

    However, don't see how any of this causes intellisense to deactivate.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    dccjr's Avatar
    dccjr is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2012
    Location
    Colorado Springs, CO
    Posts
    138
    Figured out a solution. Since these never change between procedures I defined the as constants like this. Everything works great now. Learned something else.
    Code:
    Option Compare Database
    Option Explicit
    Private Const cenSQL As String = "','"
    Private Const intStartNo As Integer = 1
    Private Const endSQL As String = "');"
    Thanks to all of you guys for the continued help.
    Last edited by dccjr; 04-18-2013 at 05:22 PM. Reason: Typos

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 09-03-2011, 07:01 PM
  2. damaged object and record locking problem
    By rivereridanus in forum Access
    Replies: 1
    Last Post: 07-29-2011, 08:45 AM
  3. Replies: 1
    Last Post: 08-05-2010, 12:11 PM
  4. Hide The Object List in 07
    By cassidym in forum Database Design
    Replies: 2
    Last Post: 07-13-2010, 02:18 PM
  5. List Box Problem
    By Jan11811 in forum Access
    Replies: 4
    Last Post: 04-29-2010, 07:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums