G
Guest
This is basics stuff - but trying to understand. If I run this, I get
expression type mismatch at the set rst statement. I can't even get to the
with statement. I eventually need to get to a place where the user chooses
an entity with comob0, then this code will determine if there is already a
record there, if there is, display it, if not, make a new record. Just
trying to get started.
Public Sub Combo0_AfterUpdate()
Dim rst As Recordset
Set rst = Me.RecordsetClone
MsgBox Combo0
'With rst
' .Findfirst "txtAE = " & Combo0
' If rst.nomatch = False Then
' Me.Refresh
' MsgBox "Found it"
' Else
' MsgBox "nope, just not here"
' End If
'End With
End Sub
expression type mismatch at the set rst statement. I can't even get to the
with statement. I eventually need to get to a place where the user chooses
an entity with comob0, then this code will determine if there is already a
record there, if there is, display it, if not, make a new record. Just
trying to get started.
Public Sub Combo0_AfterUpdate()
Dim rst As Recordset
Set rst = Me.RecordsetClone
MsgBox Combo0
'With rst
' .Findfirst "txtAE = " & Combo0
' If rst.nomatch = False Then
' Me.Refresh
' MsgBox "Found it"
' Else
' MsgBox "nope, just not here"
' End If
'End With
End Sub