Results 1 to 8 of 8
  1. #1
    trident is offline Competent Performer
    Windows 8 Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    141

    Datasheet View not showing properly

    I have created a form as a Datasheet. When I incorporated the form to a button, it is not working properly.

    Whenever I click the button, the form will open but will show only 1 line of data on a stack format and not in Datasheet view.

    can anyone explain this to me.

    I tried changing the view on the properties, but it is still the same problem.



    Thank you for your assistance.

    Trident

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,458
    what code are you using to open the form?

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    When opening one Form from another Form (regardless of what the Default View is for the second Form) you have to explicitly tell Access to open it in Datasheet View, like this:

    DoCmd.OpenForm "YourFormName", acFormDS

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I don't use datasheet view forms but may it also be you are not using 'continuous' rather than 'single' as your form view?

  5. #5
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,458
    in form properties set default view to datasheet

    then set all 'allow view properties' to no except the datasheet view which should be yes

  6. #6
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Once again, it doesn't matter how the Form Properties are set in the Form itself, in order open a one Form, in Datasheet View, from another Form (which is what the OP is doing, given his statement "Whenever I click the button, the form will open...") you must set the View Parameter of the OpenForm to acFormDS:

    DoCmd.OpenForm "YourFormName", acFormDS

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  7. #7
    trident is offline Competent Performer
    Windows 8 Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    141
    Thank you guys for the reply.

    What I was using was the MACRO event for the button and followed the instructions in there.

    The messages are enlightening and the solution/s provided will be test.

    I will inform if it works.

    Again, Thank you.

    Trident.

  8. #8
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    When posting a question you always need to state that you're using a Macro; very few experienced developers use them or have experience with them.

    Once again, you have to explicitly tell the Access Gnomes to open the Form in Datasheet View.

    Open your Macro in Design View, go down to just below where you entered the Form Name and under 'Form View' select Datasheet.

    If you plan on doing much development, in Access, you really need to start leaning VBA; Macros tend to be very restrictive in what you can do and how you can do it.

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

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

Similar Threads

  1. Tab not working properly in datasheet subform
    By vaibhav28 in forum Forms
    Replies: 17
    Last Post: 05-01-2016, 11:40 PM
  2. Replies: 3
    Last Post: 02-10-2014, 03:57 PM
  3. Replies: 3
    Last Post: 08-18-2013, 09:14 PM
  4. Replies: 6
    Last Post: 11-21-2012, 05:10 PM
  5. Totals showing across bottom of Datasheet view
    By Laurie B. in forum Access
    Replies: 8
    Last Post: 09-14-2011, 01:47 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