|
-
Apr 28th, 2001, 07:54 PM
#1
Thread Starter
New Member
beginner w/ FindFirst
What do I have to do to get the following code to work?
'Calls up input box to find the desired record
Private Sub cmdFind_Click()
mstrClientLastName = InputBox("Enter the Last Name", "Find")
If mstrClientLastName <> "" Then
mrstClientLastName.FindFirst "fldClientLastName = " & "'" & _
mstrClientLastName & "'"
If mrstClientLastName.NoMatch = True Then
MsgBox "Cannot find " & mstrClientLastName, vbInformation, "Atlantic Marketing"
End If
End If
End Sub
-
Apr 28th, 2001, 08:33 PM
#2
Hyperactive Member
Ok here is one problem:
'Calls up input box to find the desired record
Private Sub cmdFind_Click()
mstrClientLastName = InputBox("Enter the Last Name", "Find")
If mstrClientLastName <> "" Then
'Lets look at the name of this string a little closer:
mrstClientLastName.FindFirst "fldClientLastName = " & "'" & _
'Look above here it should be mstrClientLastName
'Set your option explicit
mstrClientLastName & "'"
If mrstClientLastName.NoMatch = True Then
MsgBox "Cannot find " & mstrClientLastName, vbInformation, "Atlantic Marketing"
End If
End If
End Sub
 Mahalo 
VB6(SP5), VC++, COBOL, Basic, JAVA
MBA, MCSD, MCSE, A+
Computer Forensics
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|