Results 1 to 7 of 7
  1. #1
    jasdem is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    27

    Communicating data between tables.


    I have 2 tables, one that has transactions and one that has individuals, for each transaction I have a Yes/No field for whether the transaction qualifies as a red flag. On the individuals table I also have a yes/no field that indicates any transaction is red flagged. Right now they are not connected. Is there a way to have the first transaction field tell the individual field that an transaction was flagged? Are there any concerns since it is a one to many relation? Should the look up be a macro, in the form properties, or table look-up?


    Thanks

  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,770
    What would you lookup - what would be the criteria?

    There must be a connection somewhere that will link to the individuals.

    Is the Transactions table dependent on a parent Orders table? Is the individual's ID in the Orders table?
    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
    jasdem is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    27
    The individuals and transactions have IDs. The Transaction table has the individuals id attached. I want the individual's field to be checked (yes) when any transaction related to the individual is checked (yes).

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Then they are connected.

    Why? Then won't the individuals field always be checked?

    The check field in Individuals seems superfluous. Whether or not an individual has transactions can always be determined with query.

    Don't understand what you are doing, nor the data structure.
    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.

  5. #5
    jasdem is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    27
    The fields are not connected though. But, yes the tables are. The tables are used to drive different forms. I agree that the check field in the individual level is not needed, but I want to call on the transaction information for the individual level form, then I should change the record source to a query with the check transaction field and all the individual fields instead of having the table alone driving it?

  6. #6
    jasdem is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    27
    The other problem is that database was inherited and I am unsure where the individual's check box is used and not used. I am reluctant to do a way with it if it will mess with our reporting. I agree that it is redundant, but can the individual field look to the transactions field in this way?

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Behind form for Individuals, VBA code using DLookup maybe like:

    If Not IsNull(DLookup("IndID", "Transactions", "checkfield=True AND IndID=" & [IndID)) Then
    Me.checkfield = True
    End If

    The real trick is figuring out what event to put code in.

    An expression in textbox could show the same info.
    =IIf(Not IsNull(DLookup("IndID", "Transactions", "checkfield=True AND IndID=" & [IndID)), True, False)
    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.

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

Similar Threads

  1. Replies: 5
    Last Post: 11-26-2013, 11:11 PM
  2. Replies: 5
    Last Post: 08-12-2013, 12:53 AM
  3. Replies: 2
    Last Post: 04-23-2013, 12:44 AM
  4. VB Loading DLL and Communicating with Server
    By Baldeagle in forum Programming
    Replies: 6
    Last Post: 01-07-2013, 02:41 PM
  5. Communicating With SQL Server
    By steve2507 in forum Access
    Replies: 6
    Last Post: 02-13-2012, 03:28 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