I need to do a VBA code for navigate into a table an edit some of the info. I'm using the recordset funtion but is not working. I'm starting by creating the VAR
Dim rst As DAO.Recordset
but every time a run the code i got a Compile error in that line
"user-defined type not defined"
Is ther something wrong with the syntaxis of this code:?
Sub NewRNWE_Click()
Dim rst As DAO.Recordset
Dim strSearchName As String
Set rst = Me.Recordset
strSearchName = Str(Me!Tech)
rst.FindFirst "Tech = " & strSearchName
If rst.NoMatch Then
MsgBox "Record not found"
End If
rst.Close
End Sub
Dim rst As DAO.Recordset
but every time a run the code i got a Compile error in that line
"user-defined type not defined"
Is ther something wrong with the syntaxis of this code:?
Sub NewRNWE_Click()
Dim rst As DAO.Recordset
Dim strSearchName As String
Set rst = Me.Recordset
strSearchName = Str(Me!Tech)
rst.FindFirst "Tech = " & strSearchName
If rst.NoMatch Then
MsgBox "Record not found"
End If
rst.Close
End Sub