I have a query in my Access DB that I am using as a field in a vb.net program. Is there a way I can format the field in the query so all spacing is equal?
example:
I would like;
RN - W.Barker 1.0
RN - S.Barker 1.0
RN - J.Smith .8
NM - M.Moorehouse 1.0
instead of;
RN - W.Barker 1.0
RN - S.Barker 1.0
RN - J.Smith .8
NM - M.Moorehouse 1.0
in other words the last column should end up lined up based on the longest name.
Code:
SELECT tblEmployee.EmployeeID, tblEmployee.EmpFullName, tblEmployee.EmpStatus, tblEmployee.EmpPosition, [EmpPosition] & "-" & [EmpFullName] & " " & [EmpStatus] AS ConName
FROM tblEmployee;
After the field is used in the vb.net program, it and other fields will be exported to a MS excel file for printing.