Hello everyone. i have a fom and subform (they are not linked).The subform has a date field named StartDate. i have a button on the form that when clicked will change the recordset of the subform to show StartDate of today. When i hit the command button, the subform becomes blank.Its driving me crazy.Here is my code:
Code:
Private Sub cmdToday_Click() Dim sSQL As String sSQL = "SELECT * FROM QueryCases WHERE QueryCases.StartDate = Date()" Forms!ViewCases![ViewCasesSubform].Form.RecordSource = sSQL End Sub
Comment