Results 1 to 8 of 8
  1. #1
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596

    Opening a Form in Datasheet Mode.

    Hi,

    Access 2010.

    I am using this:
    Code:
    DoCmd.OpenForm "PreviousEntries", 3, , , , , "Start"
    to open a Form in Datasheet mode.

    However, in design view for "PreviousEntries" - I have an Exit button - and that button does not show up when the Form opens up as a Datasheet at run time.
    I want to show the data in Datasheet mode - but I also want an Exit button on the form so I can return to the 'calling' form ["Start"].

    In design view - the form that is being opened in DS view at run time does not appear as a 'Datasheet' but as a 'regular' Form - with controls running down the form vertically.

    I'd appreciate any help.

    Thanks!

    Robeen

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I'm guessing your 'exit' button is in your form header, which is the limtiation of opening something in datasheet view.

    Why not create a form that looks just like a datasheet then your form header (and therefore exit button) will be visible.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    Use Continuous view and arrange controls horizontally to appear as datasheet. The appearance will be very close.

    Or allow users to use the X close button and put code in that event to return focus to Start.
    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.

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610

    Edit

    I don't think you can show the button when the form is in datasheet view. Not sure if you could show the button if you redesign the form as a continuous form. I would create a new form and put your existing form on that new form as a subform. You could then have the button on the new form.

    Edit:
    June7, you type so quick!
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    And rpeare even faster!

    The button will show with Continuous view.
    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.

  6. #6
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    Quote Originally Posted by June7 View Post
    And rpeare even faster!
    Clearly. I didn't even see that post

    The button will show with Continuous view.
    I thought that was the case but wasn't sure without testing and didn't want to take the chance of miss-informing the OP.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  7. #7
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    Thanks, everyone!
    I just added my Form to another Form as a Sub-Form.
    Appreciate all your suggestions.
    P.S. I could not get the button to show when I earlier tried it as a Continuous Form.

  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,644
    The continuous form is working with button now?

    A Single form and Continous aren't really very different, just the Continous allows 'continuous' scrolling of records, whereas Single navigates one record at a time. All the same form sections are available in both. A continuous form will not be allowed if there is a subform.
    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: 8
    Last Post: 05-06-2013, 03:14 AM
  2. Replies: 9
    Last Post: 10-17-2012, 11:37 AM
  3. Opening Saved data in form in Edit mode
    By l3111 in forum Forms
    Replies: 7
    Last Post: 06-06-2011, 11:37 AM
  4. Replies: 4
    Last Post: 01-14-2011, 10:37 AM
  5. Opening Form in Data Entry Mode Problem
    By alsoto in forum Forms
    Replies: 1
    Last Post: 05-28-2009, 07:45 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