P
Pam
Hi,
I have the following SQL that pulls info specific for tech name entered into
combo box on form.
SELECT qJobList.JobAssignment, qJobList.MachineAssignment,
qJobList.ExpectedPartsRecdDate, qJobList.PumpType, qJobList.JobNumber,
qJobList.CustomerName, qJobList.ReceiptOfGoods, qJobList.PriceQuote,
qJobList.ReadyToRepair, qJobList.Completed, qJobList.HotJob,
qJobList.MachineStart, qJobList.MachineFinish FROM qJobList WHERE
(((qJobList.JobAssignment)=Forms!fSwitchboard!Combo8) And
((qJobList.Completed) Is Null)) Or
(((qJobList.MachineAssignment)=Forms!fSwitchboard!Combo8) And
((qJobList.Completed) Is Null)) ORDER BY qJobList.JobNumber,
qJobList.ReceiptOfGoods, qJobList.ReadyToRepair, qJobList.MachineStart;
Everything was working great. Now users want to enter another type of job
for same techs that are not in the auto number format as the job number in
the SQL above. I created a new table with fields needed, made a query,
combined it to the query above (see SQL below) and when view in datasheet
view on form, I get list of repair job numbers with the same pkg job number
on the row as each repair job for that tech.
Combo Box Tech = Don
Repair Job Pkg Job
6700 52774a
6701 52774a
6702 52774a
I know this is working as it should, but I'm thinking there is a way to show
like this.
Combo Box Tech = Don
Repair Job Pkg Job
6700
52774a
6701
6702
Here's the SQL with second table added:
SELECT qPkgWork.JobNumber, qPkgWork.Name, qPkgWork.Description,
qPkgWork.ReadyToAssemble, qPkgWork.Complete, qJobList.JobAssignment,
qJobList.MachineAssignment, qJobList.ExpectedPartsRecdDate,
qJobList.PumpType, qJobList.JobNumber, qJobList.CustomerName,
qJobList.ReceiptOfGoods, qJobList.PriceQuote, qJobList.ReadyToRepair,
qJobList.Completed, qJobList.HotJob, qJobList.MachineStart,
qJobList.MachineFinish
FROM qJobList LEFT JOIN qPkgWork ON qJobList.JobAssignment =
qPkgWork.JobAssignment
WHERE (((qJobList.JobAssignment)=[Forms]![fSwitchboard]![Combo8]) AND
((qJobList.Completed) Is Null)) OR
(((qJobList.MachineAssignment)=[Forms]![fSwitchboard]![Combo8]) AND
((qJobList.Completed) Is Null))
ORDER BY qJobList.JobNumber, qJobList.ReceiptOfGoods,
qJobList.ReadyToRepair, qJobList.MachineStart;
I hope what I want to accomplish is explained clearly and I'm sorry for the
length of msg. Any help with this is greatly appreciated!!
Thanks,
Pam
I have the following SQL that pulls info specific for tech name entered into
combo box on form.
SELECT qJobList.JobAssignment, qJobList.MachineAssignment,
qJobList.ExpectedPartsRecdDate, qJobList.PumpType, qJobList.JobNumber,
qJobList.CustomerName, qJobList.ReceiptOfGoods, qJobList.PriceQuote,
qJobList.ReadyToRepair, qJobList.Completed, qJobList.HotJob,
qJobList.MachineStart, qJobList.MachineFinish FROM qJobList WHERE
(((qJobList.JobAssignment)=Forms!fSwitchboard!Combo8) And
((qJobList.Completed) Is Null)) Or
(((qJobList.MachineAssignment)=Forms!fSwitchboard!Combo8) And
((qJobList.Completed) Is Null)) ORDER BY qJobList.JobNumber,
qJobList.ReceiptOfGoods, qJobList.ReadyToRepair, qJobList.MachineStart;
Everything was working great. Now users want to enter another type of job
for same techs that are not in the auto number format as the job number in
the SQL above. I created a new table with fields needed, made a query,
combined it to the query above (see SQL below) and when view in datasheet
view on form, I get list of repair job numbers with the same pkg job number
on the row as each repair job for that tech.
Combo Box Tech = Don
Repair Job Pkg Job
6700 52774a
6701 52774a
6702 52774a
I know this is working as it should, but I'm thinking there is a way to show
like this.
Combo Box Tech = Don
Repair Job Pkg Job
6700
52774a
6701
6702
Here's the SQL with second table added:
SELECT qPkgWork.JobNumber, qPkgWork.Name, qPkgWork.Description,
qPkgWork.ReadyToAssemble, qPkgWork.Complete, qJobList.JobAssignment,
qJobList.MachineAssignment, qJobList.ExpectedPartsRecdDate,
qJobList.PumpType, qJobList.JobNumber, qJobList.CustomerName,
qJobList.ReceiptOfGoods, qJobList.PriceQuote, qJobList.ReadyToRepair,
qJobList.Completed, qJobList.HotJob, qJobList.MachineStart,
qJobList.MachineFinish
FROM qJobList LEFT JOIN qPkgWork ON qJobList.JobAssignment =
qPkgWork.JobAssignment
WHERE (((qJobList.JobAssignment)=[Forms]![fSwitchboard]![Combo8]) AND
((qJobList.Completed) Is Null)) OR
(((qJobList.MachineAssignment)=[Forms]![fSwitchboard]![Combo8]) AND
((qJobList.Completed) Is Null))
ORDER BY qJobList.JobNumber, qJobList.ReceiptOfGoods,
qJobList.ReadyToRepair, qJobList.MachineStart;
I hope what I want to accomplish is explained clearly and I'm sorry for the
length of msg. Any help with this is greatly appreciated!!
Thanks,
Pam