I'm attempting to remove trailing spaces from a queried field in a database, with no luck. However, I don't want to alter the database, itself. Every field in the column has at least one trailing blank space.
Given Values
DataEnviron.rscmdStation.Fields!Station = "WPXN "
Text1.Text = "WPXN"
For reasons unknown, the code below doesn't 'trim' down the "WPXN " to "WPXN".
Any ideas?
Given Values
DataEnviron.rscmdStation.Fields!Station = "WPXN "
Text1.Text = "WPXN"
For reasons unknown, the code below doesn't 'trim' down the "WPXN " to "WPXN".
Code:
If Trim$(.rscmdStation.Fields!Station)= Text1.Text Then
'- do whatever
End If
Any ideas?