Hello all,
it looks like i have an issue.
I wanted to avoid a kind of temporary table as the DB I'm creating is quite heavy and complex already.
Before:
1 Append Query to Table
1 Update Query to fill a new table from the previously created table
It worked like a charm but was way to heavy and slow to control (more than 22.000 records every week just for this table)
So I wanted to use a Select Query instead the first step
After:
1 Select Query
1 Update Query to fill a new table from the previous Select Query
Then of course I got an error 3073.
Note: The update query is running through VBA.
Note: I might try a nested Select into the update Query, but i really don't know how to use it.
Note: Access 2010
Code for Select Query:
Code for Update Query (in VBA):
Any help is really appreciated and thanks a lot in advance
it looks like i have an issue.
I wanted to avoid a kind of temporary table as the DB I'm creating is quite heavy and complex already.
Before:
1 Append Query to Table
1 Update Query to fill a new table from the previously created table
It worked like a charm but was way to heavy and slow to control (more than 22.000 records every week just for this table)
So I wanted to use a Select Query instead the first step
After:
1 Select Query
1 Update Query to fill a new table from the previous Select Query
Then of course I got an error 3073.
Note: The update query is running through VBA.
Note: I might try a nested Select into the update Query, but i really don't know how to use it.
Note: Access 2010
Code for Select Query:
Code:
SELECT T_CE_TOBE.DebtorNumber, Max(DateDiff("m",[EndOfMonthDate],DateAdd("m",[tblco.Ter],[tblCO.StsLIVDat]))) AS ResidualMonths
FROM T_CE_TOBE INNER JOIN tblCO ON T_CE_TOBE.DebtorNumber = tblCO.DebNum
GROUP BY T_CE_TOBE.DebtorNumber;
Code for Update Query (in VBA):
Code:
UpdateMonths = "UPDATE T_CE_TOBE LEFT JOIN Q_CE_TOBE_periods ON T_CE_TOBE.DebtorNumber = Q_CE_TOBE_periods.DebtorNumber SET T_CE_TOBE.ResidualMonths = [Q_CE_TOBE_periods].[ResidualMonths]"
DoCmd.RunSQL UpdateMonths
Any help is really appreciated and thanks a lot in advance