Hello Guys,
I have a Function which is supposed to return a Select statement
Here is the function
This Function is used as a rowsource for my listbox - Here is the code below
But when I change the listBox option nothing happens. I stepped through it and saw that
returns the correct value but when I hover over
is shows Me.lstPE.RowSource = ""
Can you guys please help me?
Thank you
I have a Function which is supposed to return a Select statement
Here is the function
Code:
Public Function sqlTaskFName(strControl As String)
Dim sqlTask As String
sqlTask = "SELECT FName,[State],RegistrationNo,DateExpires,Select1,OfficeID FROM QryPE WHERE [Employee]=strControl, ORDER BY FName"
End Function
This Function is used as a rowsource for my listbox - Here is the code below
Code:
Dim strControl As String
strControl = Me.cboFName.Column(0)
Me.lstPE.RowSource = sqlTaskFName(strControl)
Me.lstPE.Requery
But when I change the listBox option nothing happens. I stepped through it and saw that
Code:
Me.cboFName.Column(0)
Code:
Me.lstPE.RowSource
Can you guys please help me?
Thank you