o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

ADS Again! -

I am storing a password in an ADS file. Suppose I save the password hello. Using a CommandButton, VB tells me that the password is hello. Ok......fine.......next I decide to change the password & enter a new password, say, bye. Now when I retrieve the password, I find that the password is now byelo i.e. the original password hello wasn't overwritten completely. Instead only the first 3 letters of hello were replaced by bye (since the length of bye is 3).

Now how do I make the ADS file completely overwrite the old password & populate itself with the new password?

One way of doing this is by first deleting the old password or the existing ADS file & then storing the new password or re-creating the ADS file respectively but that would mean unnecessary code which I would like to avoid.

Thanks,

Arpan