| | |
using find in visual basic 6
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Aug 2007
Posts: 47
Reputation:
Solved Threads: 0
Greetings!
I am using find command in vb6 using to conditional statement.
Call dbconek
With ar
.Open "Select *From numgroup", strconek, adOpenStatic, adLockOptimistic
.Find "numero = '" + bet + "' And "draw_date = " & DateValue(vdrawdate.Text) & "", 0, adSearchForward
If Not .EOF Then
msgbox "record is existing"
Else
msgbox "record is not existing"
End If
End With
I received error from .find command "Type mismatch Error 1"
my datafield
numero -----> string
draw_date -----> short date
my variables
bet ------------> string
vdrawdate.text --------> as textbox
the error comes from draw_date and vdrawdate.
anybody can help me or there is any other solution.
thank in advance
I am using find command in vb6 using to conditional statement.
Call dbconek
With ar
.Open "Select *From numgroup", strconek, adOpenStatic, adLockOptimistic
.Find "numero = '" + bet + "' And "draw_date = " & DateValue(vdrawdate.Text) & "", 0, adSearchForward
If Not .EOF Then
msgbox "record is existing"
Else
msgbox "record is not existing"
End If
End With
I received error from .find command "Type mismatch Error 1"
my datafield
numero -----> string
draw_date -----> short date
my variables
bet ------------> string
vdrawdate.text --------> as textbox
the error comes from draw_date and vdrawdate.
anybody can help me or there is any other solution.
thank in advance
![]() |
Similar Threads
- Visual Basic Timer/Clock/Countdown. (Visual Basic 4 / 5 / 6)
- QBASIC and Visual Basic (Legacy and Other Languages)
- VBscript in a Visual Basic Application (Visual Basic 4 / 5 / 6)
- Visual Basic 4 Upgrades? (Visual Basic 4 / 5 / 6)
- Creating an OS in visual basic 6.0 (Visual Basic 4 / 5 / 6)
- How do I execute executable programs in visual basic using.... (Visual Basic 4 / 5 / 6)
- The Move.....Visual Basic 6, Visual Basic .NET ? (VB.NET)
- Encrypting a Visual Basic application (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Creating an Object in Project1 from a Class in Project2
- Next Thread: ICQ captures Webbrowser component beforenavigate event
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






