B
Bob Vance
On the same form frmHorseManagement I have 2 text boxes tbStartdate and
tbEndDate, can I get this case to sort by those 2 dates?
Case "Category Print Remark by Date"
strSQL = "SELECT * FROM tblRemarks WHERE HorseID=" _
& Form_frmHorseManagement.tbHorseIdMain.value & " and Category='" &
Form_frmHorseManagement.cbCategoryHorseMain & "' ORDER BY dtDate
DESC,tblRemarks.Remark ASC;"
SrNo.ControlSource = "SrNo"
tbHorseName.Visible = True
SrNo.Visible = True
tbDate.Visible = True
lblDate.Visible = True
lblRemarkID.Visible = False
tbRemarkID.Visible = False
tbHorseName.ControlSource =
"=[Forms]![frmHorsemanagement]![tbNameToDisplayMain]"
tbRemarks.Visible = False
tbRemarkID.ControlSource = ""
tbHorseName.Visible = True
tbEndDate, can I get this case to sort by those 2 dates?
Case "Category Print Remark by Date"
strSQL = "SELECT * FROM tblRemarks WHERE HorseID=" _
& Form_frmHorseManagement.tbHorseIdMain.value & " and Category='" &
Form_frmHorseManagement.cbCategoryHorseMain & "' ORDER BY dtDate
DESC,tblRemarks.Remark ASC;"
SrNo.ControlSource = "SrNo"
tbHorseName.Visible = True
SrNo.Visible = True
tbDate.Visible = True
lblDate.Visible = True
lblRemarkID.Visible = False
tbRemarkID.Visible = False
tbHorseName.ControlSource =
"=[Forms]![frmHorsemanagement]![tbNameToDisplayMain]"
tbRemarks.Visible = False
tbRemarkID.ControlSource = ""
tbHorseName.Visible = True