I have a list box that contains 9 columns. I populate this listbox using a sql query. I want one of the columns in my listbox to show leading zeros. How would I accomplish this.
For example, right now column with header 'Element' is showing numbers as 32...this should be 0032.
I use the code below to populate the listbox:
For example, right now column with header 'Element' is showing numbers as 32...this should be 0032.
I use the code below to populate the listbox:
Code:
Me.lbTasks.RowSource = "SELECT ID, DISCRETE_TASKS AS [Discreate Tasks], NETWORK, NWA AS [Activity], " & _ "NWAE AS [Element], PLANNED_AMT AS [BAC], TOTAL_ACTUAL_COSTS AS [AC] , TOTAL_ASSIGNED_COSTS AS [EV], PLANNED_AMT AS [PV] FROM TASKS WHERE FUNDING_DOC_ID_FK = " & _ fPrevious.lbFundingDocs & ";"
Comment