我试图在 VB 中创建一个简单的搜索功能。它的构造如下:
Dim rst As recordSet
Dim lastName As String
Dim firstName As String
Dim eventTitle As String
'Current Record set
Set rst = CurrentDb.OpenRecordset("tblWebMeetingData")
If (IsNull(Me.txtFldLastName) = False) Then
lastName = Me.txtFldLastName
rst.FindFirst "[Last Name] = " & lastName
MsgBox ("Found record")
Else
MsgBox ("Record not found")
End If
If (IsNull(Me.txtFldFirstName) = False) Then
firstName = Me.txtFldFirstName
End If
If (IsNull(Me.txtFldEventTitle) = False) Then
eventTitle = Me.txtFldEventTitle
End If
但我不断收到“此类对象不支持操作”的错误消息。是什么赋予了?姓氏字段在表格中隔开