Results 1 to 8 of 8
  1. #1
    Fish218 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    68

    Issue with filtering a subdatasheet then adding more data to the table...


    I have a form with subdatasheets. In one subdatasheet [subLT], I have the field [TagNumber], which is a field in tblTags. I have already entered the tag number into tblTags with information on the date the tag was issued, who it was issued to, etc. When I get the tag back, I want to be able to enter the tag number in [subLT] and have the other subdatasheet [subTags], which is just tblTags, bring up the appropriate record with the tag number, then automatically enter information such as the date the tag was returned (which would be based on a text box on the form).

    The issue I'm having is not being familiar with filtering in general, plus not being familiar with filtering a subdatasheet based on a field in another subdatasheet, then automatically entering information to complete the "Tag" record. Any information or examples would be greatly appreciated. Thanks.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,600
    You have two subdatasheets bound to tblTags? Why? Do you want to provide project for analysis?
    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
    Fish218 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    68
    No, I have two subdatasheets ([subTags] and [subFish])) bound to two seperate tables ([tblTags] and [tblFish]). I just use the field "Tag Number" from subTag in subFish. It's how the flow of the data entry works. What I need is an afterupdate procedure for TagNumber in subFish. Once the tag number is put into the field, the missing values for the other fields in subTags will populate, such as the date the tag was returned which is just a text box filled in previously. Should be simple, but I am not familiar with filtering.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,600
    Is this what you are trying to do: http://www.fmsinc.com/MicrosoftAcces...edSubforms.asp
    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
    Fish218 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    68
    Yes similar to that. I tried what was suggested, but when it filters, the data already in the table disappears. I'm not sure why, it should just filter the existing table by Tag Number, keeping the original data in the table, right?

    Perhaps theres and easier way to do what I'm trying to do. I'm trying to add data to an existing subform by filtering a subform. Am I missing something?

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,600
    I don't follow "add data to an existing subform by filtering a subform". Do you want to provide project for analysis?
    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.

  7. #7
    Fish218 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    68
    I would provide the project, but not sure how, plus I have sensitive data already in there.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,600
    Make copy, remove confidential data (names, addresses, phones, ssns, whatever), run compact & repair, zip if large, attach to post. Attachment Manager is below the Advanced post editor.
    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: 3
    Last Post: 12-19-2011, 11:18 AM
  2. Replies: 1
    Last Post: 08-11-2011, 09:22 PM
  3. Adding data to a table
    By Jbelle7435 in forum Programming
    Replies: 17
    Last Post: 06-13-2011, 07:30 AM
  4. Replies: 1
    Last Post: 11-04-2010, 12:57 PM
  5. Adding a table cannot enter data
    By tak4 in forum Queries
    Replies: 0
    Last Post: 02-03-2009, 10:04 AM

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