OK here's my working so far ... which *seems* to work for sybase with a DSN
Create a temporary querydef and open a recordset to validate the password. If the password is valid then
instantiate any stored passthrough querydef (a nice simple one to be quick!)
use sendkeys to pass the password and an {enter} keystroke to the keyboard buffer
Open a recordset based on the querydef .... the ODBC password prompt briefly appears and autocompletes
voila ... all passthough querydefs work
a bit clunky ... any better ideas , anyone ?
Main Topics
Browse All Topics





by: NatchiketPosted on 2009-04-06 at 06:53:27ID: 24077270
I should qualify that, my reference to stored querydefs applies to stored passthrough querydefs