G
Guest
I am trying to make a command button on one of my forms that will search for
a particular person in my table using last name
a particular person in my table using last name
Scott said:I am trying to make a command button on one of my forms that will
search for a particular person in my table using last name
Rick Brandt said:Scott said:I am trying to make a command button on one of my forms that will
search for a particular person in my table using last name
Assuming that your form has a field named [LastName]...
Dim RetVal as String
RetVal = InputBox("Enter Last Name")
If RetVal <> "" Then
Me.Filter = "[LastName] = '" & RetVal & "'"
Me.FilterOn = True
End If
Rick Brandt said:Scott said:I am trying to make a command button on one of my forms that will
search for a particular person in my table using last name
Assuming that your form has a field named [LastName]...
Dim RetVal as String
RetVal = InputBox("Enter Last Name")
If RetVal <> "" Then
Me.Filter = "[LastName] = '" & RetVal & "'"
Me.FilterOn = True
End If
Scott said:Got another question for ya.
I am trying to set up a delete button that will delete data from 4 tables
based on the Social Security Number. I have the relationships based from this
number. Any ideas.
Rick Brandt said:Scott said:I am trying to make a command button on one of my forms that will
search for a particular person in my table using last name
Assuming that your form has a field named [LastName]...
Dim RetVal as String
RetVal = InputBox("Enter Last Name")
If RetVal <> "" Then
Me.Filter = "[LastName] = '" & RetVal & "'"
Me.FilterOn = True
End If