|Depends on which flavour of VB you are using. There is VB Sscript, VB for Applications, VB6 and VB ,Net and they are all slightly different.|
The easiest method is a a simple SQL query:
Select username, password From TableName
But that wont work with VBS but should work in all the other versions of VB.
A lot depends on what format the data is stored in,