marqueluis
2007-11-08 13:19:38 UTC
The problem is when I execute a query to retrieve the record from Table 2, I got the message :"No Value given for one or more required parameters"
This is the code where the error displays in the After_Insert Event. (Note, there is a coma after the CurrentProject.Connection parameter, not .. as displayed)
Dim rsDest As New ADODB.Recordset
Dim SQLStmt As String
SQLStmt = "Select * from table2 WHERE table2_Id = " & Me!ID
rsDest.open SQLStmt, CurrentProject.Connection, adOpenDynamic, adLockOptimistic