B
bymarce
I'm using the following lines of code to build an SQL statement. The
Data.MLO field is a text field of the format ####-####. When the query runs
based on this SQL statement it removes zeros after the hyphen. How do I get
it to keep the zeros? Do I need to add or change the quotes? Thanks.
Marcie
stSQL = "SELECT DISTINCT Personel.Email FROM Data "
stSQL = stSQL & "INNER JOIN Personel ON " & "Data.TestAssignedTo = _
Personel.Initials WHERE "
stSQL = stSQL & "((" & "Data.MLO" & ")" & " IN (" & Me.txtMLO & "))"
Data.MLO field is a text field of the format ####-####. When the query runs
based on this SQL statement it removes zeros after the hyphen. How do I get
it to keep the zeros? Do I need to add or change the quotes? Thanks.
Marcie
stSQL = "SELECT DISTINCT Personel.Email FROM Data "
stSQL = stSQL & "INNER JOIN Personel ON " & "Data.TestAssignedTo = _
Personel.Initials WHERE "
stSQL = stSQL & "((" & "Data.MLO" & ")" & " IN (" & Me.txtMLO & "))"