Hi all,
I have a query that runs fine but needs tweaking. It displays differences between an old file and a new file. I haven't been able to figure out how to do two things. Here is one entry:
1) I would like the following result to be displayed in Bold:
2) Right now results are displayed in a table and each result is in a separate row. So, 6 rows are showing up for each one. I would like the results to be displayed in one row for each ID.
Here is the SQL:
I have a query that runs fine but needs tweaking. It displays differences between an old file and a new file. I haven't been able to figure out how to do two things. Here is one entry:
Code:
BU_Changed: IIf([Staffing_Differences_New_vs_Old].[Changed_BU_Y_N]=1,[Monthly_Staffing_No OPEN_or_Blanc_ID].[Business Unit],"")
1) I would like the following result to be displayed in Bold:
Code:
[Monthly_Staffing_No OPEN_or_Blanc_ID].[Business Unit]
2) Right now results are displayed in a table and each result is in a separate row. So, 6 rows are showing up for each one. I would like the results to be displayed in one row for each ID.
Here is the SQL:
Code:
SELECT [Monthly_Staffing_No OPEN_or_Blanc_ID].[ID], IIf([Staffing_Differences_New_vs_Old].[Changed_Country_Y_N]=1,"<b>" & [Monthly_Staffing_No OPEN_or_Blanc_ID].[Country],"") AS Country_Changed, IIf([Staffing_Differences_New_vs_Old].[Changed_BU_Y_N]=1,[Monthly_Staffing_No OPEN_or_Blanc_ID].[Business Unit],"") AS BU_Changed, IIf([Staffing_Differences_New_vs_Old].[Changed_Corp_Job_Y_N]=1,[Monthly_Staffing_No OPEN_or_Blanc_ID].[Corporate Job Title],"") AS Corporate_Job_Changed, IIf([Staffing_Differences_New_vs_Old].[Changed_Reports_To_Y_N]=1,[Monthly_Staffing_No OPEN_or_Blanc_ID].[Reports To],"") AS Reports_To_Changed, IIf([Staffing_Differences_New_vs_Old].[Changed_Territory_Y_N]=1,[Monthly_Staffing_No OPEN_or_Blanc_ID].[Territory],"") AS Territory_Changed INTO Staffing_Changed_Fields_NO_OPEN
FROM [Monthly_Staffing Data], Staffing_Differences_New_vs_Old, [Monthly_Staffing_No OPEN_or_Blanc_ID];