S
slowuptake
The borrowed code below returns type mismatch error when attempting to
evaluate .FindFirst
I assume it is because IngMyVar is an integer, and the code was written for
a string. However my knowledge of syntax is weak, and I haven't stumbled
across the proper syntax after considerable trial and error.
Suspect it is a simple problem for the more skilled.
Can anyone help?
regards,
Slowuptake
Code ==>
Dim IngMyVar As Long
With Me.RecordsetClone
.FindFirst "[idnTimeCardID] = '" & IngMyVar & "'"
If .NoMatch Then
MsgBox "Timeheet not found!", vbExclamation
Else
Me.Bookmark = .Bookmark
End If
End With
evaluate .FindFirst
I assume it is because IngMyVar is an integer, and the code was written for
a string. However my knowledge of syntax is weak, and I haven't stumbled
across the proper syntax after considerable trial and error.
Suspect it is a simple problem for the more skilled.
Can anyone help?
regards,
Slowuptake
Code ==>
Dim IngMyVar As Long
With Me.RecordsetClone
.FindFirst "[idnTimeCardID] = '" & IngMyVar & "'"
If .NoMatch Then
MsgBox "Timeheet not found!", vbExclamation
Else
Me.Bookmark = .Bookmark
End If
End With