thechazm
VBA, VB.net, C#, Java
- Local time
- Today, 13:34
- Joined
- Mar 7, 2011
- Messages
- 515
I have an issue where my Exists function in my Append query keeps giving me this error message "AggregateType is not a valid name. Make sure that it does not include invalid characters or punctuation and that it is not to long."
Here is the exists line.
If anyone can please help me out I would really appreciate it.
Almost forgot the reason I am using the exists function is to make sure the exact record does not exists and if it does not then insert it otherwise skip it because I have the criteria for the field set to false.
Thanks
Here is the exists line.
Code:
Test: Exists (Select * from [SDSK Leave Taken] as e WHERE
[Tmp CL].[IBB Date] = [e].[IBB Date] AND
[Tmp CL].[Charge Date] = [e].[Charge Date] AND
[Shops].[ID] = [e].[Home Shop ID] AND
[Shops_1].[ID] = [e].[Borrow Shop ID] AND
[tmpReference Personnel].[ID] = [e].[Badge ID] AND
[SDSK Charge Types].[ID] = [e].[Charge Type ID] AND
[Tmp CL].[Work Hour] = [e].[Charged Time])
If anyone can please help me out I would really appreciate it.
Almost forgot the reason I am using the exists function is to make sure the exact record does not exists and if it does not then insert it otherwise skip it because I have the criteria for the field set to false.
Thanks