Results 1 to 8 of 8
  1. #1
    Adam1970 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Feb 2023
    Posts
    30

    append help

    Hi


    i have an append query that populates "PurchaseDetailT." based upon a check box.
    i have a form with parent "PurchaseF" & child "PurchaseDetailF.
    currently if i check all items it populates the 1st purchaseF. how can i create a new purchaseF ie the purchaseID autonumber when i append other items? presently it adds any new appended items to the only purchaseT item autonumber 1.

    I hope the above makes sense

    Thanks
    Adam

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Not really. Provide code for analysis. If you want to attach db, follow instructions at bottom of my post.

    Why do you need append query? Why not form/subform arrangement for data entry?
    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
    Adam1970 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Feb 2023
    Posts
    30
    Quote Originally Posted by June7 View Post
    Not really. Provide code for analysis. If you want to attach db, follow instructions at bottom of my post.

    Why do you need append query? Why not form/subform arrangement for data entry?
    Hi
    The user's would have already performed a lot of the data entry on the salesform.
    The append query is to move it from the SalesDetailT to the PurchaseDetailT. To eliminate extra work & possible errors.
    When I append I also open the PurchaseF containing the PurchaseDetailF. However this form contains all items I appended and all previous items.
    I want the form to open with a new record and only the items I have just appended to be within the loaded subform.
    Thanks
    Adam

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Again, provide code for analysis by some means.
    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
    Adam1970 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Feb 2023
    Posts
    30
    There isn't any code yet.
    It is purely an append query of specific items from SalesDetailT to PurchaseDetailT
    The issue is the PurchaseDetailT isn't populating with the PurchaseID autonumber from the PurchaseT. Because of this its is pulling all items in the PurchaseDetailT to the purchaseDetailF subform & not just the most recent appended items.
    I currently only have 1 record in the PurchaseT.
    Thanks
    Adam

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    You have a query. That is code.

    Best you provide db.
    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
    Adam1970 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Feb 2023
    Posts
    30
    below is the image of my query. i need to be able to pull the data returned on this query into the childform (PurchaseDetailF) of the open parentform (purchaseF). I have added the following to the purchaseID field on the purchaseDetailF =[Forms]![PurchaseF]![PurchaseID]

    Click image for larger version. 

Name:	Query1.PNG 
Views:	11 
Size:	18.5 KB 
ID:	50220

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    And you want that query used as subform RecordSource? That won't really work because subform loads before main form. Why aren't you using Master/Child links of subform container control.

    Doubt I can offer anything else without reviewing db.
    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: 4
    Last Post: 02-03-2021, 08:32 AM
  2. Replies: 19
    Last Post: 10-03-2017, 09:10 AM
  3. Access can't append all the records in the append query
    By fluffyvampirekitten in forum Access
    Replies: 2
    Last Post: 08-27-2015, 01:53 AM
  4. Replies: 1
    Last Post: 10-06-2011, 08:37 AM
  5. Replies: 7
    Last Post: 07-21-2011, 01:01 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