| | |
using date in conditional statement
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 date in my program. My databasefield <draw_date> declared as shortdate in msaccess.
when i use in the programs
.Open "Select *From numgroup Where Draw_date = '" & DateValue(vdrawdate.Text) & "'", strconek, adOpenStatic, adLockOptimistic
I received error message.. Data Type mismatch in the criteria and sometimes Error 13
Anybody can help to use date as conditional statement..
thank you in advance
i am using date in my program. My databasefield <draw_date> declared as shortdate in msaccess.
when i use in the programs
.Open "Select *From numgroup Where Draw_date = '" & DateValue(vdrawdate.Text) & "'", strconek, adOpenStatic, adLockOptimistic
I received error message.. Data Type mismatch in the criteria and sometimes Error 13
Anybody can help to use date as conditional statement..
thank you in advance
![]() |
Similar Threads
- Msql. Insert data depending on which form field is filled out. (PHP)
- MySQL Conditional Query (PHP)
- Please check my code below (Java)
- problem comparing strings (PHP)
- plz help(Airline Reservation System) (C++)
- Internet Explorer-OUT OF ORDER + More (Viruses, Spyware and other Nasties)
- C++ help with Julian day program revised (C++)
- how to test equality of 2 objects (C++)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: [VB6] FlexGrid Question
- Next Thread: Create DSN at Run time
| Thread Tools | Search this Thread |
* 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






