Results 1 to 4 of 4
  1. #1
    rmoore is offline Advanced Beginner
    Windows XP Access 2016
    Join Date
    Feb 2020
    Posts
    47

    Datasheet view issues

    Hi All, I have a problem getting a form to open in datasheet view. The default view is set to datasheet and datasheet view is allowed. It will open in datasheet view if I open it directly from the navigation pane but if I open it from a button it opens in single form. This is how i have it setup. I have a 'HomeF' form that has a button 'cmdWorkOrderManagement' when clicked 'WorkOrderManagementChoiceF' form opens as a pop up. On that form I have a button 'cmdUpdateWorkOrder' when clicked it should open 'WorkOrderUpdateF' form in datasheet view. This is the code on the event property.Private Sub cmdUpdateWorkOrder_Click() DoCmd.OpenForm "WorkOrderUpdateF", acDatasheetEnd Sub


    Any help would be helpful

    Test Copy.zip

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2019
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    I think your code should be:

    Code:
    DoCmd.OpenForm "WorkOrderUpdateF",acFormDS
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    rmoore is offline Advanced Beginner
    Windows XP Access 2016
    Join Date
    Feb 2020
    Posts
    47
    Thanks Bob, that solved it

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2019
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Quote Originally Posted by rmoore View Post
    Thanks Bob, that solved it
    You're welcome. Always glad to help if I can
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Multiple Datasheet View subform tabs requery issues
    By gottnoskill in forum Programming
    Replies: 11
    Last Post: 06-05-2014, 06:33 AM
  2. Replies: 2
    Last Post: 01-28-2014, 10:13 PM
  3. Replies: 3
    Last Post: 08-18-2013, 09:14 PM
  4. Replies: 6
    Last Post: 11-21-2012, 05:10 PM
  5. Replies: 16
    Last Post: 09-12-2012, 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