Hi all!
I have a report built on a union query thats pulls data from 2 tables - Faculative and SpecialAcceptances. Each table has requestDate and answerDate fields, and my query works out the delay in days between the two in a calculated field called 'Delay'. The query also has a calculated field that pulls in the name of the table the record is coming from. The only other 2 fields are CedantName and CedantID.
So the rpt has 3 columns: first one for the CedantName, second for the Faculative response, and third for the SpecialAcceptance response.
The Report footer has 2 txboxes one to work out the average delay of Faculative responses and the other works out the average delay of SpecialAcceptances. I'm using a dlookup on both of these. It works for Faculative. but I get error! in the txbox in report view for SpecialAcceptance??? I've checked my query and swapped the order of the union around. I've checked and double checked my spelling. Deleted and recreated the txbox. even tried removing faculative average to see if that was throwing it. I even tried building a new report thats only txbox was set to this dlookup - and I still got the error; that is until i changed 'SpecialAcceptances' to 'Faculative'.. now i'm lost. Can anyone help???
here is my dlookup syntax...
=DLookUp("AVG([Delay])","qrySAFAvgDelay","tbl='SpecialAcceptances'")
Crabback
I have a report built on a union query thats pulls data from 2 tables - Faculative and SpecialAcceptances. Each table has requestDate and answerDate fields, and my query works out the delay in days between the two in a calculated field called 'Delay'. The query also has a calculated field that pulls in the name of the table the record is coming from. The only other 2 fields are CedantName and CedantID.
So the rpt has 3 columns: first one for the CedantName, second for the Faculative response, and third for the SpecialAcceptance response.
The Report footer has 2 txboxes one to work out the average delay of Faculative responses and the other works out the average delay of SpecialAcceptances. I'm using a dlookup on both of these. It works for Faculative. but I get error! in the txbox in report view for SpecialAcceptance??? I've checked my query and swapped the order of the union around. I've checked and double checked my spelling. Deleted and recreated the txbox. even tried removing faculative average to see if that was throwing it. I even tried building a new report thats only txbox was set to this dlookup - and I still got the error; that is until i changed 'SpecialAcceptances' to 'Faculative'.. now i'm lost. Can anyone help???
here is my dlookup syntax...
=DLookUp("AVG([Delay])","qrySAFAvgDelay","tbl='SpecialAcceptances'")
Crabback