G
Guest
I have to set up checkboxes on a form and am having difficulties due to a
query. I have a query that “catches†a max value on any duplicate records.
Although they are not actually duplicates, the do have a few duplicate values
that are Primary Keys in another table/query. So I need to use the most
recent of any ‘duplicated’ records. This feeds a list to another (parameter)
query. The checkboxes won’t function because of the ‘calculated’ query
(recordset not updateable). Is there a way to redo or rework this and get the
same effect?
‘Calculated’ Query:
SELECT Max([Main data table].[Inspection #]) AS [MaxOfInspection #], [Main
data table].[Work Order:]
FROM [Main data table]
GROUP BY [Main data table].[Work Order:];
Parameter Query:
SELECT tblSpecialsByJobNmr.JOB_NBR, tblSpecialsByJobNoPrintList.print_check,
tblSpecialsByJobNoPrintList.job_line_no, tblSpecialsByJobNmr.WORK_ORDER,
tblSpecialsByJobNmr.ITEM_NBR, tblSpecialsByJobNmr.STATUS,
tblSpecialsByJobNmr.DT_ACT_COMPL, tblSpecialsByJobNmr.SCHED_COMP_QTY,
tblSpecialsByJobNmr.SCRAP_QTY, [Main data table].[Date of inspect], [Main
data table].[Time Inspect], [Main data table].[Disposition:], [Main data
table].[Rework Sent To]
FROM ((tblSpecialsByJobNoPrintList RIGHT JOIN tblSpecialsByJobNmr ON
tblSpecialsByJobNoPrintList.job_line_no = tblSpecialsByJobNmr.JOB_LINE_NBR)
LEFT JOIN qryQaTableParseMax ON tblSpecialsByJobNmr.WORK_ORDER =
qryQaTableParseMax.[Work Order:]) LEFT JOIN [Main data table] ON
qryQaTableParseMax.[MaxOfInspection #] = [Main data table].[Inspection #]
WHERE (((tblSpecialsByJobNmr.JOB_NBR)=[Enter a Job Number]));
Any help on this is greatly appreciated. You don’t know how long I spent of
deducing the problem.
Jim
query. I have a query that “catches†a max value on any duplicate records.
Although they are not actually duplicates, the do have a few duplicate values
that are Primary Keys in another table/query. So I need to use the most
recent of any ‘duplicated’ records. This feeds a list to another (parameter)
query. The checkboxes won’t function because of the ‘calculated’ query
(recordset not updateable). Is there a way to redo or rework this and get the
same effect?
‘Calculated’ Query:
SELECT Max([Main data table].[Inspection #]) AS [MaxOfInspection #], [Main
data table].[Work Order:]
FROM [Main data table]
GROUP BY [Main data table].[Work Order:];
Parameter Query:
SELECT tblSpecialsByJobNmr.JOB_NBR, tblSpecialsByJobNoPrintList.print_check,
tblSpecialsByJobNoPrintList.job_line_no, tblSpecialsByJobNmr.WORK_ORDER,
tblSpecialsByJobNmr.ITEM_NBR, tblSpecialsByJobNmr.STATUS,
tblSpecialsByJobNmr.DT_ACT_COMPL, tblSpecialsByJobNmr.SCHED_COMP_QTY,
tblSpecialsByJobNmr.SCRAP_QTY, [Main data table].[Date of inspect], [Main
data table].[Time Inspect], [Main data table].[Disposition:], [Main data
table].[Rework Sent To]
FROM ((tblSpecialsByJobNoPrintList RIGHT JOIN tblSpecialsByJobNmr ON
tblSpecialsByJobNoPrintList.job_line_no = tblSpecialsByJobNmr.JOB_LINE_NBR)
LEFT JOIN qryQaTableParseMax ON tblSpecialsByJobNmr.WORK_ORDER =
qryQaTableParseMax.[Work Order:]) LEFT JOIN [Main data table] ON
qryQaTableParseMax.[MaxOfInspection #] = [Main data table].[Inspection #]
WHERE (((tblSpecialsByJobNmr.JOB_NBR)=[Enter a Job Number]));
Any help on this is greatly appreciated. You don’t know how long I spent of
deducing the problem.
Jim