R
R Makos
I am trying to write some VBA code in Access. If I use the literal "031" as
the VALUE in the VBA Insert INTO command, the zero is preserved. I have a
VBA string variable that when displayed, contains the leading zero. If I
move the "031" to this VBA string variable and then do the INSERT, the
leading zero is lost. The Access field is defined as TEXT length of 3. The
VBA variable is STRING * 3.
I've tried lots of convert and format functions to no avail.
the VALUE in the VBA Insert INTO command, the zero is preserved. I have a
VBA string variable that when displayed, contains the leading zero. If I
move the "031" to this VBA string variable and then do the INSERT, the
leading zero is lost. The Access field is defined as TEXT length of 3. The
VBA variable is STRING * 3.
I've tried lots of convert and format functions to no avail.