Hello,
I have a problem on an Access database linked to SQL Server 2014 database.
I'm going to try to describe my problem as it's quite strange...
In the database part where I'm getting the bug, I have 3 cascading tables, linked with an ID.
Table 1 contains 3 records.
Table 2 contains 2 records (linked to TB1 ID2 and TB1 ID3)
Table 3 contains 4 records (linked to TB2 ID1 and TB2 ID2)
So I have 3 cascading forms.
The main form Form1 (linked to Table1), SubForm2 in Form1 (linked to Table2) and SubForm3 in SubForm2 (Linked to Table3).
My problem is with the last Subform (SubForm3, linked to Table3).
All of the 3 forms are linked to a stored procedure in SQL Server.
I can open the main form to see all data without any problem.
1) As I have no record on Table2 for the first record in Table1, when I'm opening Form1 on the first record, Form2 only display header and footer, and as a consequence, Form3 doesn't appears at all.
2) When I'm moving to the second record on table1 with Form1, I'm getting all data in Form1, Form2 and Form3.
3) If I'm going back to the first record on Form1, I'm getting the same as point 1, that's ok.
4) But, if I'm going back to second record on Form1, I'm getting the message Error 2467 (The expression you entered refers to an object that is closed or doesn't exist) on Form3. Data are ok in Form1 and Form2. All lines refering to Form3 are crashing with error 2467.
I'm unable to find the difference between step 1 to 2 and step 3 to 4.
Many many thanks in advance for ideas and help.
Christian.
I have a problem on an Access database linked to SQL Server 2014 database.
I'm going to try to describe my problem as it's quite strange...
In the database part where I'm getting the bug, I have 3 cascading tables, linked with an ID.
Table 1 contains 3 records.
Table 2 contains 2 records (linked to TB1 ID2 and TB1 ID3)
Table 3 contains 4 records (linked to TB2 ID1 and TB2 ID2)
So I have 3 cascading forms.
The main form Form1 (linked to Table1), SubForm2 in Form1 (linked to Table2) and SubForm3 in SubForm2 (Linked to Table3).
My problem is with the last Subform (SubForm3, linked to Table3).
All of the 3 forms are linked to a stored procedure in SQL Server.
I can open the main form to see all data without any problem.
1) As I have no record on Table2 for the first record in Table1, when I'm opening Form1 on the first record, Form2 only display header and footer, and as a consequence, Form3 doesn't appears at all.
2) When I'm moving to the second record on table1 with Form1, I'm getting all data in Form1, Form2 and Form3.
3) If I'm going back to the first record on Form1, I'm getting the same as point 1, that's ok.
4) But, if I'm going back to second record on Form1, I'm getting the message Error 2467 (The expression you entered refers to an object that is closed or doesn't exist) on Form3. Data are ok in Form1 and Form2. All lines refering to Form3 are crashing with error 2467.
I'm unable to find the difference between step 1 to 2 and step 3 to 4.
Many many thanks in advance for ideas and help.
Christian.