rebeccah2004
Programmer
hello. i hope you can help me. this seems pretty straight forward, but i am missing something. i have a column called internala_c and it is 6 chars in the db. we need to append 2 zeros at the end in out vb app. i have this:
spaces_required = (internala_c - Len(tempString))
tempString = tempString & Space(spaces_required) & Mid(rs.Fields(5), 1, internala_c_Len) & "00"
spaces_required = (cusip_mtf - Len(tempString))
tempString = tempString & Space(spaces_required) & Mid(rs.Fields(6), 1, cusip_mtf_Len)
but what is does is this:
306211 00040228AG3
when i need this:
30621100040228AG3
my column positions look like this(i included the 2 surrounding also):
settle_date_mtf = 1
internala_c = 7
cusip_mtf = 17
trantypetextmtf = 26
any input or help would be greatly appreciated!
thank you,
rebecca
spaces_required = (internala_c - Len(tempString))
tempString = tempString & Space(spaces_required) & Mid(rs.Fields(5), 1, internala_c_Len) & "00"
spaces_required = (cusip_mtf - Len(tempString))
tempString = tempString & Space(spaces_required) & Mid(rs.Fields(6), 1, cusip_mtf_Len)
but what is does is this:
306211 00040228AG3
when i need this:
30621100040228AG3
my column positions look like this(i included the 2 surrounding also):
settle_date_mtf = 1
internala_c = 7
cusip_mtf = 17
trantypetextmtf = 26
any input or help would be greatly appreciated!
thank you,
rebecca