Hi there,
I am trying to do a two level embeded query but it is causing Dr Watson
errors.
The line which is causing the problem is:
CFCDeci: (Select sum (FlexChangeDeci ) FROM [qryFlexi] as [qryFlexi2] WHERE
([qryFlexi2].[DateID] <= [qryFlexi].[DateID]) and ([qryFlexi2].[DateID] >=
[qryFlexi].[PrevFlex]);)
specifically ([qryFlexi2].[DateID] >= [qryFlexi].[PrevFlex]) as it works
when I remove this.
Prev Flexi was defined in an earlier query with another embeded query, could
this be what is causing the problem?
The code for PrevFlex is below:
PrevFlex: (Select max (dateID) FROM [tblflexi] as Temp WHERE [temp].[dateid]
<= [qrytimes].[dateid])
Any help would be gratefully appreciated.
Thanks,
John.
P.S. The rest of the SQL can be posted if it is of help.....
I am trying to do a two level embeded query but it is causing Dr Watson
errors.
The line which is causing the problem is:
CFCDeci: (Select sum (FlexChangeDeci ) FROM [qryFlexi] as [qryFlexi2] WHERE
([qryFlexi2].[DateID] <= [qryFlexi].[DateID]) and ([qryFlexi2].[DateID] >=
[qryFlexi].[PrevFlex]);)
specifically ([qryFlexi2].[DateID] >= [qryFlexi].[PrevFlex]) as it works
when I remove this.
Prev Flexi was defined in an earlier query with another embeded query, could
this be what is causing the problem?
The code for PrevFlex is below:
PrevFlex: (Select max (dateID) FROM [tblflexi] as Temp WHERE [temp].[dateid]
<= [qrytimes].[dateid])
Any help would be gratefully appreciated.
Thanks,
John.
P.S. The rest of the SQL can be posted if it is of help.....
Comment