MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 8th, 2004, 10:19 AM
Romanov Romanov is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 2 Romanov User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 18 sec
Reputation Power: 0
Unhappy Automatcaly create and/or update Table link from Access

I'm aware of how to create a function that automaticaly update my Table links from my Access FrontEnd to tables in a MS-SQL database :

Public Sub RefreshLinksSQL()
On Error GoTo RefreshLinks_Error
Dim X As Integer, tbds As TableDefs
Set tbds = CurrentDb.TableDefs
For X = 0 To tbds.Count - 1
Select Case tbds(X).Attributes
Case dbAttachExclusive, dbAttachSavePWD, dbAttachedTable, dbAttachedODBC
tbds(X).RefreshLink
End Select
Next X
Exit Sub
RefreshLinks_Error:
MsgBox Err.Number & ":" & Err.Description, vbCritical
End Sub
-----------------------------------

How do I create a link to another MS-SQL database (a subscriber with the same tables). Either by pointing to another database (System DSN) and just let it change the table links to this, or by writing a code with the name of each table I wornt to link.

If this is posible, is there then a way where at the same time can point out what is the key in each table (or view)?

Romanov

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > Automatcaly create and/or update Table link from Access


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT