J
Jeff
Im trying to compare a date in the where part of the sql. The reson for this
is to pull up a recordset based on the date on the form. Thank you in advance
Here is my code:
Dim cn As ADODB.Connection
Dim RS As ADODB.Recordset
Dim strConnection As String
Dim sqstr As String
Set cn = CurrentProject.Connection
Set RS = New ADODB.Recordset
With RS
Set .ActiveConnection = cn
.Source = "SELECT * FROM cclSchedule WHERE (cclScheduleStart=" &
Me.txtDate & ")"
.LockType = adLockOptimistic
.CursorType = adOpenKeyset
.CursorLocation = adUseClient
.Open
End With
is to pull up a recordset based on the date on the form. Thank you in advance
Here is my code:
Dim cn As ADODB.Connection
Dim RS As ADODB.Recordset
Dim strConnection As String
Dim sqstr As String
Set cn = CurrentProject.Connection
Set RS = New ADODB.Recordset
With RS
Set .ActiveConnection = cn
.Source = "SELECT * FROM cclSchedule WHERE (cclScheduleStart=" &
Me.txtDate & ")"
.LockType = adLockOptimistic
.CursorType = adOpenKeyset
.CursorLocation = adUseClient
.Open
End With