Results 1 to 4 of 4
  1. #1
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    2,097

    Double frondend to backend links following tabledef

    I've attached a text file containing a sub code that creates a new table and adds the new fields. The code runs fine, but somehow I managed to create 2 links from the frontend to the backend. I.e., tbSermons and tbSermons1 I don't see where the second link came from, unless the tabledef functionality does the first one automatically?

    I'd post the code inline here, but I don't know how to use the code tags?

    Thanks,


    Bill
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    To use the code tags button on the Advanced Editor just click then copy/paste your code between the tags. You can also just type the tags.

    Not understanding how this code works. What is IPDatabase? It is not a declared variable within the procedure. Is this code in the frontend?

    Why do you need to programmatically create table as opposed to just opening the backend and creating table(s)?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    2,097
    Hi June,
    The code is attending to DB updates in the field corresponding to version enhancements in the app.
    IPDatabase is an installation variable that "tells" the frontend where the backend DB is located.
    The posted code is one sub amongst several in a general module. I just thought it was enough to give a clue as to why two links were created where I only explicitly issued one.
    Bill

  4. #4
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    2,097
    RATS! A cockpit error. During the course of some debug, I ran the code that created and linked the tbSermons table. While the backend indeed did not already have the table the frontend still had the link from a previous run. With that, the link action produced a second link, tbSermons1. I have error code, but it didn't get called when the link was done with the same name as an existing.
    Sorry I wasted your time,
    Bill

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

Similar Threads

  1. Links and Relationships Help !
    By wrkadri in forum Database Design
    Replies: 3
    Last Post: 03-08-2013, 08:09 AM
  2. TableDef assignation - Error 3420
    By Rod in forum Programming
    Replies: 1
    Last Post: 10-23-2012, 12:09 AM
  3. Strange TableDef behaviour
    By tym in forum Access
    Replies: 12
    Last Post: 11-24-2011, 03:16 AM
  4. Testing links
    By piflechien73 in forum Forms
    Replies: 0
    Last Post: 06-01-2009, 05:09 PM

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