Results 1 to 13 of 13
  1. #1
    smarty84handsome is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2012
    Posts
    67

    Thumbs up Name & Date by Default

    How do i create default date and default name on report header ?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    You want current date? Textbox with expression in ControlSource: =Date()

    What do you mean by default name? Could have a Label control with a name as the caption.

    Give more info about what you are trying to do.
    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
    smarty84handsome is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2012
    Posts
    67
    I have created a query with fields emp_id, entry date, Description with parameter emp_name. Now i want to create a report based on this query in such a way that on the page header part date and name of that employee should be displayed. I have already figured out how to display the date along with time but the name on the header how do i do this ?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    You have an input parameter prompt in the query under a field called Description? I never use input parameter prompts in queries - cannot validate the input, also can't refer to the input anywhere else. The query has an emp_id so there must be a table with employee names as well as the emp_id. Include that table in query by joining on the emp_id fields. This will make the name info available for display on the report.
    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
    smarty84handsome is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2012
    Posts
    67
    I apologise in advance for providing partial information. Yes i do have another table with name employee_file and i have included that table in my query but how to display emp_name in page header every time i run a report ?

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Report header or page header?

    Maybe use a textbox with ControlSource set to the employee name field.
    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
    smarty84handsome is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2012
    Posts
    67
    Quote Originally Posted by June7 View Post
    Report header or page header?

    Maybe use a textbox with ControlSource set to the employee name field.
    Report Header

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Did you try a textbox there?
    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
    smarty84handsome is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2012
    Posts
    67
    i am about to do it

  10. #10
    smarty84handsome is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2012
    Posts
    67
    okay i just tried using text box with control source set to employee_name field but it's working as just a parameter the way i want is to set report header in such a way that when i run report for particular employee his/her name should display automatically at the top in report header.

  11. #11
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    If it is prompting for input then the report is not finding that field name as part of its RecordSource. If you have included that table in the report's RecordSource, make sure that field has been included in the field selections in the query grid.
    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.

  12. #12
    smarty84handsome is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2012
    Posts
    67
    So i need to add this field in query is that what it is ? coz i am still trying to link emp_file table which contains employee name and employee number but some reason it still says error

  13. #13
    smarty84handsome is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2012
    Posts
    67
    okay i just figured out how to do it thanks for your help it's working the way i wanted thnks for your help.

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

Similar Threads

  1. Default Calculated Date Value
    By HMEpartsmanager in forum Forms
    Replies: 17
    Last Post: 09-12-2012, 08:37 AM
  2. Forms Default Date
    By smarty84handsome in forum Forms
    Replies: 2
    Last Post: 01-09-2012, 07:15 PM
  3. Default Min & Max Date Values in Form
    By alsoto in forum Forms
    Replies: 3
    Last Post: 10-03-2011, 10:54 AM
  4. Default date value
    By Wayne311 in forum Database Design
    Replies: 4
    Last Post: 01-15-2011, 05:38 PM
  5. Default Date in Date Fields
    By rickn in forum Access
    Replies: 5
    Last Post: 04-14-2010, 01:30 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