Re: How to avoid connection popup?
- From: "Hallgeir" <hallremovegeir@xxxxxxxxxxxxx>
- Date: Wed, 1 Jun 2005 19:35:12 +0200
>> "Justin Hoffman" wrote in message
>> If you are not worried about security then you can save the password with
>> the linked table when you create the links.
>>
>> Hey
>> Thanks for the information. Security is not an issue in my case. So now
>> I'am wondering how I can save the password with the linked tables. I
>> can't find any option to save the password when i create the link. I
>> create the link from the menu, File, Get external data, Link table.
>>
>> mvh
>> Hallgeir
>
> Hi Hallgeir
> There are lots of variations on this theme, but here is one. Paste all
> the code into a new module, alter the two variables strConnect and
> strTableList so they match your requirements. Then compile and save the
> module. You can then type CTRL-G to get the immediate window and type
> ?RelinkTables() which should return true.
>
> It may seem strange to list the tables, but often the front end can link
> to one or more back ends and not all the tables are required - so
> explicitly listing them does give you more control.
>
Thank you Justin!
I tried your code and it worked just fine. This could be the solution of my
problems but there is still a small issue I have to solve. The linked tabels
in my access app can not have the same name as the tables in the sql server
database. By using two Tablelist variables (one with access app table names
and one with sql server database name) I manage to delete the existing links
and reconnect the tables with the names from the sql server database, but I
can't figur out how I can give the reconnected tables the name I want to
give them (the same name that I store in my first Tablelist variabel).
mvh
Hallgeir
.
- Follow-Ups:
- Re: How to avoid connection popup?
- From: Justin Hoffman
- Re: How to avoid connection popup?
- Prev by Date: transfer data into an external database
- Next by Date: Excel Pivot Table
- Previous by thread: transfer data into an external database
- Next by thread: Re: How to avoid connection popup?
- Index(es):
Relevant Pages
|
Loading