Remove a macro (I think?)

bellemmar

Registered User.
Local time
Today, 05:16
Joined
Mar 9, 2011
Messages
64
How do I change the parameters of the search box so that it only searches the Last Name field?

I think this is a macro question but I'm not sure. I deleted a bunch of fields but when you type a name in the search box, dialogue boxes still pop up for the fields I deleted saying "Enter Parameter Value".
 
Last edited:
Try this. It will find where the space is between the names and then extract only the last part.
sFullName is the variable for the full name.


Dim iSpacePos As Integer
Dim sFullName As String
SepName As String

iSpacePos = InStr(sFullName, " ")
SepName = Mid$(sFullName, iSpacePos + 1, Len(sFullName))
 

Users who are viewing this thread

Back
Top Bottom