Run a VBA script from an Event in MS Access -


i created ms access database consists of 25 odbc database links connected 1 table on each of these databases. each of these tables have same structure, different data. then, union these tables query can have data available in 1 view.

the problem i'm having, every time try use query reporting software (crystal reports), have manually connect 25 databases, tedious.

i made vba connection script connects each of databases using log information, don't know how trigger code event opening query or that.

any ideas?

you'll need relink tables in access database on "external data" tab. when "link tables" dialog, make sure click "save password" option before clicking "ok". store password information in linked table definition. linked tables created brought in "tablename1" name.

during next step, no open queries. break if don't complete step first.

delete original linked tables access database. then, remove "1" new linked table names. replace original links ones have persistent password information.

i'm not 100% positive, believe fix issue. don't believe there way trigger vba or kind of macro when running query crystal reports, odbc credentials need stored in linked table definitions.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -