G
Guest
I created a make-table querry using the standard querry create screen. This
querry takes fields from a few tables and when I run it all fields bar one
appear in the new table. I have no idea why the one field does not show.
The SQL for the querry is shown below.
The field that does not get "updated" is the last "SELECT" field
"TCURRENT.LastUpdate". Does anybody have any ideas?
SELECT
QSelEsc.[Sm Inv Id],
QSelEsc.[Location Id],
QSelEsc.[Contract Amount],
QSelEsc.[Billing Stop],
TESCTYPE.EscTypeID,
TESCTYPE.EscTyprDescription,
TCURRENT.CurrentLabRate,
TLABRATE.Rate,
TCURRENT.CurrentMatInd,
TCURRENT.[Labour%],
[Contract Amount]*[Labour%] AS CurrLabPart,
[Contract Amount]-[CurrLabPart] AS CurrMatPart,
TCURRENT.CurrCPI,
TCURRENT.NotToExceed,
TCURRENT.IndEndDate,
TCURRENT.CPIEndDate,
TCURRENT.NewMatInd,
TCURRENT.NewCPIIndex,
TCURRENT.UpdateStatus,
TCURRENT.ApprovalStatus,
TCURRENT.LastUpdate
INTO TCURESC
FROM TLABRATE, TESCTYPE INNER JOIN (QSelEsc INNER JOIN TCURRENT ON
QSelEsc.[Sm Inv Id] = TCURRENT.SMInvID) ON TESCTYPE.EscTypeID =
TCURRENT.EscTypeID
WHERE (((TLABRATE.EndDate)>((SELECT[EndDate] FROM [TLABRATE] WHERE [Billing
Stop] >[EndDate]))) AND ((TLABRATE.[Start Date])<((SELECT[Start Date] FROM
[TLABRATE] WHERE [Billing Stop] <[Start Date]))));
Thank you
querry takes fields from a few tables and when I run it all fields bar one
appear in the new table. I have no idea why the one field does not show.
The SQL for the querry is shown below.
The field that does not get "updated" is the last "SELECT" field
"TCURRENT.LastUpdate". Does anybody have any ideas?
SELECT
QSelEsc.[Sm Inv Id],
QSelEsc.[Location Id],
QSelEsc.[Contract Amount],
QSelEsc.[Billing Stop],
TESCTYPE.EscTypeID,
TESCTYPE.EscTyprDescription,
TCURRENT.CurrentLabRate,
TLABRATE.Rate,
TCURRENT.CurrentMatInd,
TCURRENT.[Labour%],
[Contract Amount]*[Labour%] AS CurrLabPart,
[Contract Amount]-[CurrLabPart] AS CurrMatPart,
TCURRENT.CurrCPI,
TCURRENT.NotToExceed,
TCURRENT.IndEndDate,
TCURRENT.CPIEndDate,
TCURRENT.NewMatInd,
TCURRENT.NewCPIIndex,
TCURRENT.UpdateStatus,
TCURRENT.ApprovalStatus,
TCURRENT.LastUpdate
INTO TCURESC
FROM TLABRATE, TESCTYPE INNER JOIN (QSelEsc INNER JOIN TCURRENT ON
QSelEsc.[Sm Inv Id] = TCURRENT.SMInvID) ON TESCTYPE.EscTypeID =
TCURRENT.EscTypeID
WHERE (((TLABRATE.EndDate)>((SELECT[EndDate] FROM [TLABRATE] WHERE [Billing
Stop] >[EndDate]))) AND ((TLABRATE.[Start Date])<((SELECT[Start Date] FROM
[TLABRATE] WHERE [Billing Stop] <[Start Date]))));
Thank you