Results 1 to 10 of 10
  1. #1
    tmcrouse is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Apr 2009
    Posts
    169

    Buttons appear numerous times and when clicking the text disappears


    When I load my main form for switchboardID, my buttons appear numerous times. I have 9 buttons on my main form and have a query as such for the buttons:

    SELECT [Switchboard Items].ItemText
    FROM [Switchboard Items]
    ORDER BY [Switchboard Items].ItemNumber;

    When I view the form not in design mode, it displays the items multiple times on the main page. My query is in record source.

    The other issue is when I click on the buttons, the text disappears and then when I move mouse away it reappears.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    There are many reasons MS has deprecated the switchboard manager. For one, programmers don't like it.

    I just built a switchboard as a test and the RecordSource sql is:
    SELECT * FROM [Switchboard Items] WHERE [ItemNumber]>0 And [SwitchboardID]=TempVars!SwitchboardID ORDER BY [ItemNumber];

    Looks nothing like yours.
    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.

  3. #3
    tmcrouse is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Apr 2009
    Posts
    169
    That does not work unless I create a single button and then a label for the text and it creates it so everything is displayed in a list. They want each item as a button. So, 9 buttons on the front page and I have to select itemtext.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Sorry, don't understand that.

    I created the switchboard with the wizard/manager. I did the same test a few days and built it up to the 8 buttons. Then went directly to the table to input record for 9th button. Did not check the RecordSource but the form worked.
    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.

  5. #5
    tmcrouse is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Apr 2009
    Posts
    169
    Maybe I need a label for each and just hide the label?

  6. #6
    tmcrouse is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Apr 2009
    Posts
    169
    I am not using Wizard. I used someone else form and altered it to what I needed. Let me try the wizard way and see what happens.
    Of course maybe it is because I started with 9 buttons so I need to create 8 buttons first and then add the 9th?

  7. #7
    tmcrouse is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Apr 2009
    Posts
    169
    Still did not work. I will just delete this entire thing and start over. I am not using the wizard.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    If you are not using the wizard then what are you building? I have never implemented 'Switchboard', at least not as configured by the wizard.

    I create a 'Menu' form with command buttons and VBA code in button Click events. Usually this 'Menu' form does not even have a RecordSource.
    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.

  9. #9
    tmcrouse is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Apr 2009
    Posts
    169
    Ugh. Why is this so hard. I am reading all through these books and cannot get this to work right. I re-created it and now all the buttons are there but overlapping the formheader. And when I attempt to hover or click on them the text in the button disappears.

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Without understanding the process you are using to create this object, cannot analyse the issue. I must be able to replicate.
    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.

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

Similar Threads

  1. Replies: 6
    Last Post: 10-01-2013, 10:58 AM
  2. Replies: 5
    Last Post: 04-24-2013, 08:50 AM
  3. Replies: 3
    Last Post: 02-22-2013, 11:34 PM
  4. Replies: 2
    Last Post: 10-12-2010, 12:02 PM
  5. Replies: 5
    Last Post: 02-10-2010, 12:27 AM

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