Results 1 to 13 of 13
  1. #1
    smarty84handsome is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2012
    Posts
    67

    Edit Table from Switchboard

    Can someone tell me how do i create edit table button on switchboard ?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    You are trying to edit one of the switchboard tables?

  3. #3
    smarty84handsome is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2012
    Posts
    67
    I am sorry i didn't understand your question but in the switchboard which i have create i am able to open form, open table, close switchboard however i don't have functionality to edit table from switchboard. I know it is not the right way to do it but at my work i am requested to create a button on switchboard in which upon clicking should allow user to add new information in table.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,630
    Did you use switchboard wizard to create the form?

    There's a good reason MS has deprecated the Switchboard wizard starting with Access 2007 - it's a royal pain. It's still there but have to work to find it.
    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
    smarty84handsome is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2012
    Posts
    67
    Quote Originally Posted by June7 View Post
    Did you use switchboard wizard to create the form?

    There's a good reason MS has deprecated the Switchboard wizard starting with Access 2007 - it's a royal pain. It's still there but have to work to find it.
    Yes i used switchboard wizard to create the form however it didn't give me any option where i can edit the table from switchboard. I believe i will have to do some VB coding can someone help me here.

  6. #6
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    I had no idea that opening a table in edit view was ever an option

  7. #7
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by smarty84handsome View Post
    I believe i will have to do some VB coding can someone help me here.
    I have done that before. You could change one of the switchboard options to do something else. Find an option you do not use and have it use a different method. Only problem is I don't have 2007, I only have 2003 and 2010

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,630
    Why would you want to allow user to work directly with table, either to enter data or edit design?
    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
    smarty84handsome is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2012
    Posts
    67
    Quote Originally Posted by ItsMe View Post
    I have done that before. You could change one of the switchboard options to do something else. Find an option you do not use and have it use a different method. Only problem is I don't have 2007, I only have 2003 and 2010
    In that case can you tell me the code for changing the option to edit table mode ?

  10. #10
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,630
    The VBA is:

    DoCmd.OpenTable "Airports", acViewDesign

    From what I can recall of switchboards, they usually call macros. Could create a macro that performs that action and call the macro from the switchboard table.

    But WHY design view?

    I recommend eliminating the switchboard and its table. Buttons with embedded macros would be preferable and I don't use macros.
    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.

  11. #11
    smarty84handsome is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2012
    Posts
    67
    I will try suggested option and post the outcome

  12. #12
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    In 2003 version the Switcboard uses constants and a select case. From there, it uses a standard Docmd.OpenForm, etc. Not too difficult to edit or even add an option to the select statement by adding a constant and placing the correct integer in your table for the argument.

  13. #13
    smarty84handsome is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2012
    Posts
    67
    Quote Originally Posted by June7 View Post
    The VBA is:

    DoCmd.OpenTable "Airports", acViewDesign

    From what I can recall of switchboards, they usually call macros. Could create a macro that performs that action and call the macro from the switchboard table.

    But WHY design view?

    I recommend eliminating the switchboard and its table. Buttons with embedded macros would be preferable and I don't use macros.

    I was able to solve the task by using macros.

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

Similar Threads

  1. Replies: 1
    Last Post: 09-27-2013, 03:53 PM
  2. Edit Switchboard Page Formatting Indepently
    By tylerg11 in forum Access
    Replies: 1
    Last Post: 10-06-2011, 02:37 PM
  3. Replies: 7
    Last Post: 09-13-2011, 01:38 PM
  4. Replies: 1
    Last Post: 08-13-2010, 10:10 PM
  5. SWITCHBOARD MANAGER DISABLED ALL THE MENU AND EDIT OPTION
    By ranjit_dutt in forum Programming
    Replies: 0
    Last Post: 04-13-2007, 08:39 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