Results 1 to 3 of 3
  1. #1
    rameshjctr is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2016
    Posts
    16

    reports of a particular employee

    friends,
    I have created a report based on query. when i open the report it will print all the employees in the table. i want to get the report for a particular employee.
    how to write the code for that. i tried to with a global variable declared at login form and get stored the login id in the global variable. then on the load event of report i tried to print the report using the global variable. but nothing happens it lists all the employees in the table. how can i correct the error?

    thanking you in advance



    ramesh j

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    No code needed,
    in the form, put the combo box to select the employee you want then open the report base on it
    docmd.openreport "myRpt",,,"[id]=" & cboEmp

  3. #3
    rameshjctr is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2016
    Posts
    16
    thanks ranman.

    ramesh

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

Similar Threads

  1. Employee Schedule
    By steed281 in forum Access
    Replies: 5
    Last Post: 04-29-2014, 01:27 PM
  2. Replies: 1
    Last Post: 04-14-2014, 11:44 AM
  3. Employee Schedule 5-2, 5-3
    By nycman in forum Access
    Replies: 3
    Last Post: 02-21-2014, 10:19 AM
  4. Replies: 8
    Last Post: 06-06-2012, 12:28 PM
  5. Append employee name with '
    By jgelpi16 in forum Programming
    Replies: 8
    Last Post: 02-11-2011, 09:30 AM

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