I have a field on my SQL server thats a date/time stamp..When opening a form I prompt using a input box. I want the user to enter the date in which they want to view the data. How can I make VB ignore the time and just look at the date entered in the inputbox..
Dim sName As String
On Error GoTo Error_Handler
Screen.MousePointer = vbHourglass
sName = Trim(InputBox$("Enter Date Below", "Search for Data") '& "%"
strRs = "SELECT "Fields WHERE DateTimeStamp LIKE '%" & sName & "%'"
Set rs = New ADODB.Recordset
rs.CursorType = adOpenDynamic
rs.CursorLocation = adUseClient
rs.LockType = adLockPessimistic
rs.Open strRs, strCn
Any help would be appreciated
Thanks
Dim sName As String
On Error GoTo Error_Handler
Screen.MousePointer = vbHourglass
sName = Trim(InputBox$("Enter Date Below", "Search for Data") '& "%"
strRs = "SELECT "Fields WHERE DateTimeStamp LIKE '%" & sName & "%'"
Set rs = New ADODB.Recordset
rs.CursorType = adOpenDynamic
rs.CursorLocation = adUseClient
rs.LockType = adLockPessimistic
rs.Open strRs, strCn
Any help would be appreciated
Thanks