Results 1 to 5 of 5
  1. #1
    justme is offline Novice
    Windows XP Access 2003
    Join Date
    Dec 2012
    Posts
    4

    Changing link address of table using command button.

    Please help me. How to change the link address of a table using command button in the form?

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Hi and welcome to the forum.

    Haven't got a clue as to what you are asking. Care to explain further?

  3. #3
    justme is offline Novice
    Windows XP Access 2003
    Join Date
    Dec 2012
    Posts
    4
    Thank u for your reply. By the way, I split the table of my access file. Now, I have already two access files, the MainFile that contains forms and reports and the other one is MainFile_be that contains splitted tables. The MainFile tables were link to the tables of MainFile_be. Now, I want to change the link address of the tables of my MainFile thru command button on my form.
    How it can be done?

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Aha. "Relink using code".
    I took examples and modified the code to fit my requirements. You will have to do this also

    Here are some links:
    The Access Web
    http://access.mvps.org/access/tables/tbl0009.htm
    http://access.mvps.org/access/tables/tbl0012.htm


    Roger's Access Library
    http://www.rogersaccesslibrary.com/forum/topic334.html
    http://www.rogersaccesslibrary.com/forum/topic286.html

    this one links text files (but still a good example)
    http://www.rogersaccesslibrary.com/forum/topic333.html

  5. #5
    justme is offline Novice
    Windows XP Access 2003
    Join Date
    Dec 2012
    Posts
    4
    thank u for your reply ssanfu. But i just want to know the code to change the link address of the existing table. i don't need to create or change any data of the table only the link address using command button. I have 3 mdb files. MainFile, Link1, and Link2. MainFile contains forms,reports, and link tables. Link1 and Link2 mdb contain the same tables. Now, my form at MainFile contains two button if i clicked button1 MainFile tables link to Link1 mdb tables, if i clicked button2 MainFile tables link to Link2 mdb tables.

    I will appreciate your reply.. Thank u..

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

Similar Threads

  1. Replies: 12
    Last Post: 10-20-2014, 11:22 AM
  2. Replies: 4
    Last Post: 04-14-2012, 07:22 PM
  3. Changing Action on a Command Button
    By ETCallHome in forum Forms
    Replies: 5
    Last Post: 03-14-2011, 05:53 AM
  4. Changing Field Values with Command Button
    By avarusbrightfyre in forum Access
    Replies: 1
    Last Post: 08-22-2010, 12:48 PM
  5. Replies: 1
    Last Post: 07-27-2010, 02:27 PM

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