Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parameter prompt on multi-table querry

Status
Not open for further replies.

kronar

Programmer
Jan 12, 2003
60
US
I am trying to display the total hours by employee by job number.

I have a subreport based on a subquery - selected by job number, grouped by EmpNum.

Have one column 'HrsbyEmp:JBT_WorkHrs' Summed.

In a later column I want to display the total for each Emp_Num
coded 'TotbyEmp:[HrsbyEmp]*[EM_Wage]'.

Each time it runs, I get a prompt box 'Enter parameter Value' 'HrsbyEmp'

How can I get ride of this prompt?
 
Tables are JB_Jobs indexed by JB_JobBidNo
JBT_EmpTime
EM_Emp indexed by JBT_EmpNumber

Query is on JBT_EmpTime by JB_JobBidNo one row for the grouping of all JBT_EmpTime records for each Employee.

so HrsbyEmp is the column name grouped by JBT_EmpNumber
 
Ok, what happens if you replace 'TotbyEmp:[HrsbyEmp]*[EM_Wage]' with 'TotbyEmp:[JBT_WorkHrs]*[EM_Wage]' ?

A,
 
As the query groups JBT_ time records by employee number for this job, I need the summed group HrsbyEmp to be multiplied by the emp wage. (I think)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top