Hi
Access 2007, MDB file, Local Machine
Here's a cracker!... I have a VB module in Access which I run from a Macro Action... It fails with Error 16 - Expression Too Complex.
When I run it in debug it works perfectly... many times over!
Is there some way I can at least find the line number it fails at in non-Debug?
Or any other clues anyone?
Thanks
Later... I changed nothing and suddenly it works normally again... Later still ... it fails with Expression too complex again....I wonder if this is a system resource issue of some kind??
I've a feeling it's failing when I use this SQL to populate an ADO RS...
SELECT TBL1.* FROM Addrs_To_Cntcts_Home AS TBL1 WHERE (TBL1.Record_Locked <> True OR TBL1.Date_Record_Lock_Last_Updated <> #31/03/2012 16:31:41# OR TBL1.Record_Lock_Last_Updated_By_Unique_No <> 6 ) AND (TBL1.Deleted=False OR TBL1.Deleted=True) AND Addrs_Unique_No IN (SELECT Unique_No FROM Addrs AS TBL2 WHERE (TBL2.Deleted=False) AND TBL2.Unique_No IN (757,761,777,780,782,806))
P.S. I know some of the brackets are irrelevant to SQL here but I use them to identify parts of the clause in order to line-edit the source.
Access 2007, MDB file, Local Machine
Here's a cracker!... I have a VB module in Access which I run from a Macro Action... It fails with Error 16 - Expression Too Complex.
When I run it in debug it works perfectly... many times over!
Is there some way I can at least find the line number it fails at in non-Debug?
Or any other clues anyone?
Thanks
Later... I changed nothing and suddenly it works normally again... Later still ... it fails with Expression too complex again....I wonder if this is a system resource issue of some kind??
I've a feeling it's failing when I use this SQL to populate an ADO RS...
SELECT TBL1.* FROM Addrs_To_Cntcts_Home AS TBL1 WHERE (TBL1.Record_Locked <> True OR TBL1.Date_Record_Lock_Last_Updated <> #31/03/2012 16:31:41# OR TBL1.Record_Lock_Last_Updated_By_Unique_No <> 6 ) AND (TBL1.Deleted=False OR TBL1.Deleted=True) AND Addrs_Unique_No IN (SELECT Unique_No FROM Addrs AS TBL2 WHERE (TBL2.Deleted=False) AND TBL2.Unique_No IN (757,761,777,780,782,806))
P.S. I know some of the brackets are irrelevant to SQL here but I use them to identify parts of the clause in order to line-edit the source.
Last edited: