Results 1 to 2 of 2
  1. #1
    DMJ's Avatar
    DMJ is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Oct 2011
    Posts
    32

    code to open table from Command Button


    The table is not opening when the command button is clicked from the switchboard. This is my code [DoCmd.OpenTable "tbl_Gang"]

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    The code works for me.

    Are there any error messages?
    Check spelling - is there a table named "tbl_Gang"
    What is the full procedure?
    Is the button connected to the subroutine? (sometimes they can get disconnected.)
    Have you set a breakpoint to determine if the code is being executed?

    Just curious.... Why are you opening a table? I never allow anyone to see anything execpt forms and reports.

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

Similar Threads

  1. command button to open attachments
    By tommyried in forum Access
    Replies: 1
    Last Post: 06-20-2012, 07:51 AM
  2. Command button open url
    By patrickmcdiver in forum Programming
    Replies: 2
    Last Post: 03-06-2012, 11:08 AM
  3. Command button to open Report
    By swagger18 in forum Programming
    Replies: 0
    Last Post: 11-17-2011, 02:56 AM
  4. Use a command button to open a form
    By johnpaul in forum Forms
    Replies: 24
    Last Post: 09-23-2010, 12:29 PM
  5. Replies: 1
    Last Post: 07-07-2010, 11:06 AM

Tags for this Thread

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