Output: Copy Of Chng_ReqQry.zip
Code:
SELECT [Change Request].CR_ID, [Change Request].CR_No, [Change Request].Sub_No, Format(([Change Request].[CR_No]+([Sub_No]*0.01)),"Fixed") AS CR_Number, IIf([Change Request].[Sub_No]=0,Format([Change Request].[CR_No],"#"),Format([Sub_No]*0.01," " & " .00")) AS CR_Numbers, [Change Request].Change_Type, [Change Request].Level, [Change Request].[Soft Level], [Level] & Chr(13) & Chr(10) & [Soft Level] AS Levels, IIf(IsNull([Soft Level]) Or [Soft Level]="",[Level],[Soft Level]) AS Levelz, [HB_Version] & Chr(13) & Chr(10) & [Approx_Page] AS [HB Vers], [Requestor] & Chr(13) & Chr(10) & [Sponsor] AS People, [Change Request].Action_Complete
FROM Switching INNER JOIN [Change Request] ON Switching.CR_ID = [Change Request].CR_ID
WHERE ((([Change Request].CR_No)<>0));
Look at CR 18 CR_Number & CR_Numbers.
If CR 18.00 is closed then it wont display, but if CR 18.01 is open, then I get the display .01. I need it to display when the Sub_No 0 is closed so that the client knows the main CR number. I want the others to continue as is the norm though.
The 4 comes from the main CR number in which the Sub_No is assigned. But you have asked the same question as the client. What CR is this sub CR referring to?
Better?