Results 1 to 9 of 9
  1. #1
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383

    Report Opens without showing all of the data using menu

    I have a monthly calendar report that opens fine when in normal design mode, i.e. not using any menu system. But when the db opens with my menu in place, i.e. File, Reports, etc... then it does not show all of the calendar? Don't know why this is! Any suggestions?
    Here is the sql

    SELECT Format([CalendarDate],"yyyymm") AS YrMth
    FROM tblCalendar


    WHERE (((Year([CalendarDate]))=[Forms]![frmAnnualCalendar]![cboYear]))
    GROUP BY Format([CalendarDate],"yyyymm");

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Opening report in 'design' mode has nothing to do with displaying records and is not comparable to opening in 'report' view.

    What is that query for - a combobox RowSource? Do you have code in cboYear AfterUpdate to requery YrMth combobox?

    Show the query for the report RecordSource.
    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.

  3. #3
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383

    Ok, here is the query pic

    I don't know why it does that! But if I use the shift key and open the db normally it works fine.If I open and use the menu and use no other code than just open the report, it does not work. Here also is a pic of what happens when i try and open it with db in normal mode.
    Attached Thumbnails Attached Thumbnails qry4calendar.jpg   calendarerror.jpg  
    Attached Files Attached Files
    Last edited by burrina; 01-19-2013 at 02:48 PM. Reason: db attached.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    What records show when query opened in datasheet?

    I would have to analyse the database.
    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
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Did you not download the db?

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Oh, did not see the link.

    Did not include forms so no menu available and had to hard code year criteria in the query.

    Reports work.
    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.

  7. #7
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    If you open the db normally and allow the menu to open and then click on Reports from the menu and choose Monthly Calendar, you will see the resulting error. Yes, if you bypass the menu all works well??? Dont know why!

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Oops, I was expecting a menu form, not a custom toolbar. Now I see the problem. And now I see that the query is not the RecordSource for the reports.

    I never built custom toolbars with Access2003 and now I am using Access2010. Looks like the toolbar is coded in the aboutEU macro. I really, really don't like macros.

    I changed the Reports macro to open report in PrintPreview and the data shows.

    Do you have to build mdb?

    F11 key will still open the Navigation Pane. Unclick 'Use Access Special Keys' to prevent that.
    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
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Thanks, Macros is what I have to use until me vba skills get better. I am making progress though. Thanks for pointing out the special keys, that was a major overlook on my part. The db is now ready for market and I am inputting code to protect it, i.e. security and piracy.

    Thanks again.

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

Similar Threads

  1. Duplicate data not showing in report
    By ashu.doc in forum Reports
    Replies: 2
    Last Post: 09-19-2012, 05:56 AM
  2. Replies: 5
    Last Post: 10-06-2011, 05:49 PM
  3. Replies: 1
    Last Post: 03-07-2011, 10:48 AM
  4. Replies: 5
    Last Post: 08-11-2010, 09:16 AM
  5. Replies: 2
    Last Post: 04-29-2009, 11:50 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