This is my SQL statement:
SELECT [serial_no] & " " & [part_number] AS MACH_ID, TestGetLivedata.type, [EndDate]-[FirstDate] AS DaysLeft, TestGetLivedata.IStatus, IIf([IStatus]="active contract",DateValue([TestGetLivedata]![EndDate])-DateValue([TestGetLivedata]![FirstDate])+1,IIf([Istatus]="quote","Quote","error"
) AS ContrStat INTO ChartGetSiteLiveData
FROM TestGetLivedata
I am trying to insert a text string called "quote"on a bar graph if the value of IStatus equals "quote" instead of a bar. When the value of Istatus equals "active contract" I can now list the values of DaysLeft (of the contract) on bars but I am now stuck for the other.
I hope I explained this problem correctly.
thanks
SELECT [serial_no] & " " & [part_number] AS MACH_ID, TestGetLivedata.type, [EndDate]-[FirstDate] AS DaysLeft, TestGetLivedata.IStatus, IIf([IStatus]="active contract",DateValue([TestGetLivedata]![EndDate])-DateValue([TestGetLivedata]![FirstDate])+1,IIf([Istatus]="quote","Quote","error"
FROM TestGetLivedata
I am trying to insert a text string called "quote"on a bar graph if the value of IStatus equals "quote" instead of a bar. When the value of Istatus equals "active contract" I can now list the values of DaysLeft (of the contract) on bars but I am now stuck for the other.
I hope I explained this problem correctly.
thanks