A
Ac
Hi,
I would like to retrieve data records from either table or query, and then
do the calculation from them. Below is part of code to get the records, and I
got the error message on the “Set rst1 = tdf1.OpenRecordsetâ€, that is “the
method or data member not foundâ€. How can I get a record from the table? (The
table name is “InputDataâ€)
Public Sub DataCalculation(ID As Long)
Dim db As DAO.Database
Dim tdf1 As DAO.TableDefs
Dim qdf2 As DAO.QueryDefs
Dim rst1 As DAO.Recordset
Dim rst2 As DAO.Recordset
Set db = CurrentDb
Set tdf1 = db.TableDefs("InputData")
Set qdf2 = db.QueryDefs("qCasing")
Set rst1 = tdf1.OpenRecordset
Set rst2 = qdf2.OpenRecordset
…
I would like to retrieve data records from either table or query, and then
do the calculation from them. Below is part of code to get the records, and I
got the error message on the “Set rst1 = tdf1.OpenRecordsetâ€, that is “the
method or data member not foundâ€. How can I get a record from the table? (The
table name is “InputDataâ€)
Public Sub DataCalculation(ID As Long)
Dim db As DAO.Database
Dim tdf1 As DAO.TableDefs
Dim qdf2 As DAO.QueryDefs
Dim rst1 As DAO.Recordset
Dim rst2 As DAO.Recordset
Set db = CurrentDb
Set tdf1 = db.TableDefs("InputData")
Set qdf2 = db.QueryDefs("qCasing")
Set rst1 = tdf1.OpenRecordset
Set rst2 = qdf2.OpenRecordset
…