B
BrunoKP
In the FindFirst-line I get the message: "The datatypes are not alike in the
search string", Soegnehelligdag is defined as date/time typetye in the table
tblSHD.
Dim strSearch As String
Dim SHD As Date
SHD = Me.txtDato.Value
Set dbsCurrent = CurrentDb()
Set RecSetSHD = dbsCurrent.OpenRecordset("tblSHD", dbOpenDynaset)
strSearch = "(Soegnehelligdag = 'SHD')"
RecSetSHD.FindFirst strSearch
RecSetSHD.Close
dbsCurrent.Close
search string", Soegnehelligdag is defined as date/time typetye in the table
tblSHD.
Dim strSearch As String
Dim SHD As Date
SHD = Me.txtDato.Value
Set dbsCurrent = CurrentDb()
Set RecSetSHD = dbsCurrent.OpenRecordset("tblSHD", dbOpenDynaset)
strSearch = "(Soegnehelligdag = 'SHD')"
RecSetSHD.FindFirst strSearch
RecSetSHD.Close
dbsCurrent.Close