![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi Everyone, I'm trying to look and see what the .connect string is to a linked table. *I want to make sure the user has security to it, and warn them if they don't. I want to do this without resorting to error trapping a dlookup(). There's lots of code on using .connect in a "foreach" loop on a collection of objects to reset connections. *But, I'm completely confused on how to use it when I just want to see the Connect string on a single known, named table. I've tried just simply saying: CurrentDb.tabledefs("linkedtablename").Connect But that doesn't work. I'm not opposed to using an object, but I'm a complete dummy with them. *And, I don't know how to put in "tablename" in the example code I've read. Please help! Thanks, Jon p.s. What happened tohttp://www.mvps.org/access?*I'm getting a 503 error. |
#3
| |||
| |||
|
|
On May 19, 2:26*pm, jonceramic <joncera... (AT) gmail (DOT) com> wrote: Hi Everyone, I'm trying to look and see what the .connect string is to a linked table. *I want to make sure the user has security to it, and warn them if they don't. I want to do this without resorting to error trapping a dlookup(). There's lots of code on using .connect in a "foreach" loop on a collection of objects to reset connections. *But, I'm completely confused on how to use it when I just want to see the Connect string on a single known, named table. I've tried just simply saying: CurrentDb.tabledefs("linkedtablename").Connect But that doesn't work. I'm not opposed to using an object, but I'm a complete dummy with them. *And, I don't know how to put in "tablename" in the example code I've read. Please help! Thanks, Jon p.s. What happened tohttp://www.mvps.org/access?*I'm getting a 503 error. I take it back. *This does work... CurrentDb.tabledefs("linkedtablename").Connect And then you can use len(CurrentDb.tabledefs("linkedtablename").Connect ) < 0 to see if it's a linked table. I was just screwing up in my immediates window, and not typing "print" beforehand. Jon- Hide quoted text - - Show quoted text - |
#4
| |||
| |||
|
|
On May 19, 2:32 pm, jonceramic <joncera... (AT) gmail (DOT) com> wrote: On May 19, 2:26 pm, jonceramic <joncera... (AT) gmail (DOT) com> wrote: And then you can use len(CurrentDb.tabledefs("linkedtablename").Connect ) < 0 to see if it's a linked table. I was just screwing up in my immediates window, and not typing "print" beforehand. BTW, this shows the string whether the user has access or not. Grrrrr... |
#5
| |||
| |||
|
|
jonceramic wrote: On May 19, 2:32 pm, jonceramic<joncera... (AT) gmail (DOT) com> wrote: On May 19, 2:26 pm, jonceramic<joncera... (AT) gmail (DOT) com> wrote: And then you can use len(CurrentDb.tabledefs("linkedtablename").Connect )< 0 to see if it's a linked table. I was just screwing up in my immediates window, and not typing "print" beforehand. BTW, this shows the string whether the user has access or not. Grrrrr... Nobody ever said Access was designed for enterprise-level security ... |
![]() |
| Thread Tools | |
| Display Modes | |
| |