I have made a macro for the search of an entry by the value of a particular field. It worked on one computer but when I try to launch it on the other I get the following error. On could be a reason of it and how could I solve it?
This is the code of the macro:
Private Sub mygtukaspa_Click()
If IsNull(kodaspa) = False Then
Me.Recordset.FindFirst "[Kodas]=" & kodaspa
Me!kodaspa = Null
If Me.Recordset.NoMatch Then
MsgBox "Atsiprasome", vbOKOnly + vbInformation, "Irasas nerastas"
Me!kodaspa = Null
End If
End If
End Sub
Private Sub Tekstas28_Click()
End Sub
Also, this might be off topic but I also get the following error when I launch the query that contains the field with the Date type. Could you help to solve this?
Thank you in advance for your help!