Results 1 to 2 of 2
  1. #1
    kdric is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Oct 2015
    Posts
    1

    How can I change defined postgresql schema when using Access linked table manager

    I am using postgresql 9.3 on Windows 8 64, and am using Access as a frontend data entry. In postgresql I have changed the schema from 'public' to 'irll'. The linked tables in Access are still linked as 'public' (e.g. 'public_table1') and I need to update/change the connection of the tables to match the new schema in the postgresql db (e.g. 'irll_table1').



    Using the linked table manager, I cannot see an option to change the old schema prefix of 'public' to the new of 'irll'.


    I can easily set up a new odbc connection with the new schema, but if I do this I will lose the data input forms I have set up in the Access database. How can I change the defined schema of the linked tables?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    I do something like this to assign connection properties to tables. Maybe you can see what an existing table's connection property looks like by using debug.print or something, then edit as needed.
    Code:
    Dim t As TableDef
    Dim strTableName As String
    
            strTableName = "NameOfTable"
            Set t = db.CreateTableDef(strTableName)
            
                t.Connect = connectionStringODBC
                t.SourceTableName = strTableName
                
                db.TableDefs.Append t
                t.RefreshLink
                
            Set t = Nothing

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Linked table manager in Access 2010
    By Delta223 in forum Access
    Replies: 3
    Last Post: 01-07-2011, 12:37 PM
  2. Linked table manager error
    By jim_jim in forum Access
    Replies: 5
    Last Post: 08-25-2010, 08:06 PM
  3. Linked Table Manager Problem
    By tallerthantrees in forum Access
    Replies: 4
    Last Post: 08-17-2009, 03:58 AM
  4. Using Linked Table Manager --Can't get it work
    By cccgsmith in forum Access
    Replies: 6
    Last Post: 03-11-2009, 06:43 AM
  5. Linked Table Manager
    By driccardi in forum Access
    Replies: 4
    Last Post: 02-15-2006, 11:47 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums