All:
I created an access database almost 2 years ago that was functioning fine. A key query started giving me an Enter Parameter Value error a couple of months ago without me changing anything. If I make other queries around the same tables, they work but if I duplicate this query, it does not even when I build the whole thing again from scratch. I cannot figure out where the error might lie. Can someone please look at the below SQL and see if anything jumps out as prompting the error?
SELECT [04-RecordEntryMaster].[EE Number] AS [EE Number], [04-RecordEntryMaster].[EE Name], [04-RecordEntryMaster].[Course Name], [02-tblStaff].[Department Cost Center], [10-Department].Department, [04-RecordEntryMaster].Frequency, [04-RecordEntryMaster].[Last Date], [04-RecordEntryMaster].[Next Date], [04-RecordEntryMaster].Pass, [04-RecordEntryMaster].Status, [07-ScheduleMaster].ScheduleMonth, [07-ScheduleMaster].Type, [02-tblStaff].[Schedule Group], [07-ScheduleMaster].ScheduleYear, [09-tblShift].Shift, Left([04-RecordEntryMaster]![Course Name],20) AS [SOP No], Right([04-RecordEntryMaster]![Course Name],Len([04-RecordEntryMaster]![Course Name])-20) AS Description
FROM [07-ScheduleMaster] INNER JOIN ([10-Department] INNER JOIN ([04-RecordEntryMaster] INNER JOIN ([09-tblShift] INNER JOIN [02-tblStaff] ON [09-tblShift].[Schedule Group] = [02-tblStaff].[Schedule Group]) ON [04-RecordEntryMaster].[EE Number] = [02-tblStaff].[EE Number]) ON [10-Department].[Job Code Description] = [02-tblStaff].[Job Code Description]) ON [07-ScheduleMaster].ScheduleCourse.Value = [04-RecordEntryMaster].[Course Name]
WHERE ((([04-RecordEntryMaster].[EE Name]) Like "*" & [Forms]![frmRecordEntry]![cboName] & "*") AND (([10-Department].Department) Like "*" & [Forms]![frmRecordEntry]![cboDepartment] & "*") AND (([07-ScheduleMaster].ScheduleMonth) Like "*" & [Forms]![frmRecordEntry]![cboMonth] & "*") AND (([07-ScheduleMaster].Type)="Training") AND (([07-ScheduleMaster].ScheduleYear) Like "*" & [Forms]![frmRecordEntry]![cboYear] & "*") AND (([09-tblShift].Shift) Like "*" & [Forms]![frmRecordEntry]![cboShift] & "*"));
The error is:
Enter Parameter Value
07-ScheduleMaster.ScheduleCourse.Value
Thank you!
I created an access database almost 2 years ago that was functioning fine. A key query started giving me an Enter Parameter Value error a couple of months ago without me changing anything. If I make other queries around the same tables, they work but if I duplicate this query, it does not even when I build the whole thing again from scratch. I cannot figure out where the error might lie. Can someone please look at the below SQL and see if anything jumps out as prompting the error?
SELECT [04-RecordEntryMaster].[EE Number] AS [EE Number], [04-RecordEntryMaster].[EE Name], [04-RecordEntryMaster].[Course Name], [02-tblStaff].[Department Cost Center], [10-Department].Department, [04-RecordEntryMaster].Frequency, [04-RecordEntryMaster].[Last Date], [04-RecordEntryMaster].[Next Date], [04-RecordEntryMaster].Pass, [04-RecordEntryMaster].Status, [07-ScheduleMaster].ScheduleMonth, [07-ScheduleMaster].Type, [02-tblStaff].[Schedule Group], [07-ScheduleMaster].ScheduleYear, [09-tblShift].Shift, Left([04-RecordEntryMaster]![Course Name],20) AS [SOP No], Right([04-RecordEntryMaster]![Course Name],Len([04-RecordEntryMaster]![Course Name])-20) AS Description
FROM [07-ScheduleMaster] INNER JOIN ([10-Department] INNER JOIN ([04-RecordEntryMaster] INNER JOIN ([09-tblShift] INNER JOIN [02-tblStaff] ON [09-tblShift].[Schedule Group] = [02-tblStaff].[Schedule Group]) ON [04-RecordEntryMaster].[EE Number] = [02-tblStaff].[EE Number]) ON [10-Department].[Job Code Description] = [02-tblStaff].[Job Code Description]) ON [07-ScheduleMaster].ScheduleCourse.Value = [04-RecordEntryMaster].[Course Name]
WHERE ((([04-RecordEntryMaster].[EE Name]) Like "*" & [Forms]![frmRecordEntry]![cboName] & "*") AND (([10-Department].Department) Like "*" & [Forms]![frmRecordEntry]![cboDepartment] & "*") AND (([07-ScheduleMaster].ScheduleMonth) Like "*" & [Forms]![frmRecordEntry]![cboMonth] & "*") AND (([07-ScheduleMaster].Type)="Training") AND (([07-ScheduleMaster].ScheduleYear) Like "*" & [Forms]![frmRecordEntry]![cboYear] & "*") AND (([09-tblShift].Shift) Like "*" & [Forms]![frmRecordEntry]![cboShift] & "*"));
The error is:
Enter Parameter Value
07-ScheduleMaster.ScheduleCourse.Value
Thank you!