A
Access::Student
Hello,
I'm trying to create a button to generate a report dependent on the current
record.
So I have two tables, "tasks" and "employees". I have a query that return
"tasks" based on a parameter inputted, which is the primary key of
"employees". This works so that I can input the ID number and get the correct
report, including only "tasks" that are related to that "employee". What I
want to do is put a button on the form for "employees" so that I can run the
report without having to input the ID.
I currently have the following code to open the report:
DoCmd.OpenReport "Common Tasks's", acViewReport, "Common Tasks's"
I can't figure out how to pass the value, so I'm not sure what to do. Thanks
for any help.
I'm trying to create a button to generate a report dependent on the current
record.
So I have two tables, "tasks" and "employees". I have a query that return
"tasks" based on a parameter inputted, which is the primary key of
"employees". This works so that I can input the ID number and get the correct
report, including only "tasks" that are related to that "employee". What I
want to do is put a button on the form for "employees" so that I can run the
report without having to input the ID.
I currently have the following code to open the report:
DoCmd.OpenReport "Common Tasks's", acViewReport, "Common Tasks's"
I can't figure out how to pass the value, so I'm not sure what to do. Thanks
for any help.