|
-
Feb 19th, 2007, 09:34 AM
#1
Thread Starter
Lively Member
displaying error
i have this my code
VB Code:
Private Sub MDIForm_Load()
sad = "Select * from tbapplicant where EndDateREserved like '" & lblDate & "%'"
tbApplicant.Open sad, cn, adOpenDynamic, adLockOptimistic
With tbApplicant
' .Find "EndDateREserved = '" & lblDate & "'"
If .EOF = False And .BOF = False Then
Label5 = .Fields(3)
End If
End With
end sub
when i comment the .Find the .fields(3) will display to the label but if i dont comment the .Find no records will display what will i do...
thanks
-
Feb 19th, 2007, 09:48 AM
#2
Re: displaying error
What are you trying to do that isn't already being done?
-
Feb 19th, 2007, 09:54 AM
#3
Thread Starter
Lively Member
-
Feb 19th, 2007, 10:14 AM
#4
Re: displaying error
I mean I don't understand the question.
 Originally Posted by mheiy
when i comment the .Find the .fields(3) will display to the label but if i dont comment the .Find no records will display what will i do...
Based on this it would seem that you don't need to use .Find and everything works, so I don't get the issue.
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
|