K
Kevin S.
Using code, such as below, I have been able to access recordsets from other
databases without linking them in the database window. Really, I'm just
trying to make a separate database which holds user information and I plan
to hide it somewhere.
Dim securityDB As Database
Set securityDB = DBEngine.OpenDatabase("path of the database")
Dim SecurityUsers As Recordset
Set SecurityUsers = securityDB.OpenRecordset("SecurityUsers")
Dim SecurityGroups As Recordset
Set SecurityGroups = securityDB.OpenRecordset("SecurityGroups")
Now, a form normally does well accessing data when a table is set in the
"record source" property. However, I don't think that I can set a remote
table in the record source for a form when the table isn't even linked in
the database window. (Keep in mind I don't want it there either.) My
solution is to open a form that is in the remote (user) database and display
it on the screen using code.
My question: Is it possible though? How can you do it using code? Also, can
I call functions stored in modules when the module is another database? How
do I do it?
Thanks for the help, it is really appreciated!
Kevin Seitz
databases without linking them in the database window. Really, I'm just
trying to make a separate database which holds user information and I plan
to hide it somewhere.
Dim securityDB As Database
Set securityDB = DBEngine.OpenDatabase("path of the database")
Dim SecurityUsers As Recordset
Set SecurityUsers = securityDB.OpenRecordset("SecurityUsers")
Dim SecurityGroups As Recordset
Set SecurityGroups = securityDB.OpenRecordset("SecurityGroups")
Now, a form normally does well accessing data when a table is set in the
"record source" property. However, I don't think that I can set a remote
table in the record source for a form when the table isn't even linked in
the database window. (Keep in mind I don't want it there either.) My
solution is to open a form that is in the remote (user) database and display
it on the screen using code.
My question: Is it possible though? How can you do it using code? Also, can
I call functions stored in modules when the module is another database? How
do I do it?
Thanks for the help, it is really appreciated!
Kevin Seitz