Results 1 to 9 of 9
  1. #1
    zozo.zead is offline Novice
    Windows 11 Access 2016
    Join Date
    Oct 2023
    Posts
    14

    Linking the beginnings of books

    Welcome


    I have a schedule of movements (Move)
    I have four tables (BookIn - BookOut _ MsgIn - Msg Out)
    There is a need to link the four accounts together in case there is a response to one of the existing book numbers

    For example, create a text box for linking in which the desired book number, which is located in one of the four tables, is placed



    Example: There is a book in the BookIn table with the number 2, which is a response to a book in MsgOut with the number 3
    They must be linked together, and there is a button called the firsts. When you click on it, all the linked correspondence appears, and it may reach a large number, such as a response or an answer.
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    You are not linking the In and Out tables on designated primary key field. If you don't want to use ID fields as key then don't designate them as such.

    Exactly what do you mean by "account"?

    Should unit "Hosbital" be spelled "Hospital"?
    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
    zozo.zead is offline Novice
    Windows 11 Access 2016
    Join Date
    Oct 2023
    Posts
    14
    Yes its "hospital" I was in a hurry

    I mean the "accounts" are the for table sorry for that

  4. #4
    zozo.zead is offline Novice
    Windows 11 Access 2016
    Join Date
    Oct 2023
    Posts
    14
    Quote Originally Posted by June7 View Post
    You are not linking the In and Out tables on designated primary key field. If you don't want to use ID fields as key then don't designate them as such.

    Exactly what do you mean by "account"?

    Should unit "Hosbital" be spelled "Hospital"?
    How can i designate ?
    There is a relationship between the four tables and the main table
    Is it possible to link the four tables to each other again using a link number?

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Designate primary key field in table design.

    I don't understand "link the four tables to each other". The four tables have relationship to main table. Why would they have relationship to each other? Sorry, not understanding your data.
    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.

  6. #6
    zozo.zead is offline Novice
    Windows 11 Access 2016
    Join Date
    Oct 2023
    Posts
    14
    There are 4 types of correspondence
    bookout is an issued book
    bookin is an incoming book
    msgout is an outgoing message
    msgin is an incoming message

    When I export the first outgoing book and there is a response to an incoming book, they must be linked together

    In short, the operations here consist of replying and responding to correspondence

    For example, I exported a new book bearing the number 3 on a specific date and the response to it was number 5. An incoming book and I responded to it with a message number 11 on a specific date. Likewise, these three correspondences are each in a table, so a special link number must be set to link the correspondence priorities together.

  7. #7
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi

    You need to rethink trying to do everything in one Table.

    You should use a Main Form to allow you to select a Specific Book and then link this
    to a Main Form listing all of the Transactions for that Book
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    As designed, these 4 tables have no relationship to each other, as far as I can see.

    The sample data does not include messages numbered 5 and 11.

    Sorry, can't make any sense of what you want to accomplish.
    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.

  9. #9
    Join Date
    Apr 2017
    Posts
    1,679
    Agreeing with others here, that it is impossible to understand, what your database must do!

    Maybe start with explaining, what are your objects there. Are they books, like books in library, which are taken and returned by clients form one of 4 desks? Or are they bookings e.g. for rooms in hotel, where clients are booking in or out at one of 4 desks?

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

Similar Threads

  1. design to borrow books
    By azhar2006 in forum Database Design
    Replies: 4
    Last Post: 10-02-2015, 01:25 PM
  2. Import from 3000 xl books
    By Tvanduzee in forum Import/Export Data
    Replies: 27
    Last Post: 08-19-2012, 02:11 PM
  3. vba books/tutorials
    By bigmac in forum Access
    Replies: 1
    Last Post: 03-10-2012, 02:05 PM
  4. SQL - Read any good books lately?
    By metaDM in forum Queries
    Replies: 2
    Last Post: 03-05-2009, 12:46 PM
  5. Ms Access Reference Books
    By dbman in forum Access
    Replies: 2
    Last Post: 01-27-2008, 06:06 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