Still new to the VBA programming, but I have a question (probably really simple too...)
Why won't this code sort the list by priority level?
-----------------------------------------------------------
Private Sub Form_Current()
'Update Search Request ID Combo with current selection criteria
strRowSource = "SELECT TBLRequests.RequestID,Request "
strRowSource = strRowSource & "FROM TBLRequests "
strRowSource = strRowSource & "Where Completed = No"
strRowSource = strRowSource & "Order by PriorityLevel"
Me.cboSearchReqID.RowSource = strRowSource
Me.cboSearchReqID.Requery
-----------------------------------------------------------
Is it because of the: Me.cboSearchReqID.RowSource = strRowSource
End Sub
Why won't this code sort the list by priority level?
-----------------------------------------------------------
Private Sub Form_Current()
'Update Search Request ID Combo with current selection criteria
strRowSource = "SELECT TBLRequests.RequestID,Request "
strRowSource = strRowSource & "FROM TBLRequests "
strRowSource = strRowSource & "Where Completed = No"
strRowSource = strRowSource & "Order by PriorityLevel"
Me.cboSearchReqID.RowSource = strRowSource
Me.cboSearchReqID.Requery
-----------------------------------------------------------
Is it because of the: Me.cboSearchReqID.RowSource = strRowSource
End Sub