Results 1 to 6 of 6
  1. #1
    SalVOM is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    20

    Prompt date popping up twice

    Hi, needed my "date range" to print on the report hearder section which identifies the data that was selected. The date and all the data appears correctly. However, the Prompt "To" field pops up 2x's how do I get the propmpt "To" value to only prompt once?




    Report header :

    Productivity Reg Hours Worked by Date Range
    From: 01/01/2014 - 01/31/2014Employee #: Employee Name:
    601 Schafernak, Paul Total Actual Hours: 158.75

    Date Prompt label is properties are:

    =[Reports]![Productivity Reg Hours Worked by Date Range]![DateWorked From] & " " & " - " & " " & [DateWorked TO]

    Thanks.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Reference a textbox on form, the way you are for DateWorkedFrom.
    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
    SalVOM is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    20
    Sorry, I not understanding!? That fields is set up as a textbox:
    Click image for larger version. 

Name:	r.jpg 
Views:	12 
Size:	278.5 KB 
ID:	15598

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Sorry, I now see the reference is Reports not Forms.

    So that confuses me more. How does the From date get into the report data?
    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
    SalVOM is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    20
    I created this report base off one of the queries that pulls daat based on the prompting for a date range (from - to) date. So i created a text field in the header sections and entered the following:

    =[Reports]![Productivity Reg Hours Worked by Date Range]![DateWorked From] & " " & " - " & " " & [DateWorked TO]

    The prompt for the "from" date shows up only once but the for the "to" range it pops up 2x's, so i enterer it twice and it only displays once.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    If this done properly there should be no popups.

    That expression looks to the report for the DateWorkedFrom and DateWorkedTo values.

    If the DateWorkedFrom and DateWorkedTo are entered on a form then the report must reference the form controls for the values.
    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: 4
    Last Post: 09-09-2013, 05:34 AM
  2. New Forms Popping Under or Rendering Off-screen
    By DepricatedZero in forum Forms
    Replies: 2
    Last Post: 04-19-2013, 09:07 AM
  3. Prompt User for Date Range when running QUERY
    By taimysho0 in forum Programming
    Replies: 3
    Last Post: 01-30-2012, 11:49 AM
  4. MsgBox in VBA Editor not popping up
    By KrisDdb in forum Access
    Replies: 2
    Last Post: 09-16-2011, 01:58 PM
  5. Replies: 2
    Last Post: 03-14-2011, 03:42 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