R
RobUCSD via AccessMonster.com
With the code below I'm attempting to change the row source for lstRNnotesLU
(a list box) based on a value entered on the frmVisitNewEdit field called
ReasonForVisitTest. For some reason it is not working. Then record set is not
changed by the code. It continues to use the underlying query for the
rowsource rather than the rowsource based on the code below. Your help is
greatly appreciated. Thanks Rob
******************************************************************************************************************
Dim T_Visit As String
T_Visit = Nz(Forms!frmPtDemographicNew!frmVisitNewEdit.Form!.
ReasonForVisitTest, "")
If T_Visit = "Ablation" Then
Me.lstRNnotesLU.RowSource = "SELECT * FROM tblRNnotesLU " & _
"WHERE fldRNnotesCode = 'A'" & "ORDER BY [fld.order]"
End If
************************************************************************************************************
(a list box) based on a value entered on the frmVisitNewEdit field called
ReasonForVisitTest. For some reason it is not working. Then record set is not
changed by the code. It continues to use the underlying query for the
rowsource rather than the rowsource based on the code below. Your help is
greatly appreciated. Thanks Rob
******************************************************************************************************************
Dim T_Visit As String
T_Visit = Nz(Forms!frmPtDemographicNew!frmVisitNewEdit.Form!.
ReasonForVisitTest, "")
If T_Visit = "Ablation" Then
Me.lstRNnotesLU.RowSource = "SELECT * FROM tblRNnotesLU " & _
"WHERE fldRNnotesCode = 'A'" & "ORDER BY [fld.order]"
End If
************************************************************************************************************