Results 1 to 5 of 5
  1. #1
    Raveen1609 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Dec 2019
    Posts
    53

    parent form Barcode value transferring to subform in POS


    Hi, I have a small POS. Main form with a subform to add products. I use a field in the main form to read the barcode. I have used DLookup and got the product name Value. Now how can I insert this Product name value to the ProductName field in a new record in subform. Kindly suggest.

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,972
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,943
    Why save product name to related child record - this sounds like duplicating data between tables. Why not just ProductID?
    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.

  4. #4
    Raveen1609 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Dec 2019
    Posts
    53
    Thanks. I don't understand how to do that coding for that, I have product ID.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,943
    What is primary key field of main form/table? That is the value that should be saved to subform/table. If Master/Child properties are correctly set, this should happen automatically.

    If you want to provide db for analysis, follow instructions at bottom of my post.
    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. Getting from a subform to a parent form button_Click
    By d9pierce1 in forum Programming
    Replies: 6
    Last Post: 03-09-2023, 09:58 AM
  2. Replies: 10
    Last Post: 12-29-2021, 07:53 AM
  3. Replies: 3
    Last Post: 12-06-2018, 03:27 PM
  4. Replies: 1
    Last Post: 01-16-2015, 09:28 AM
  5. Replies: 6
    Last Post: 08-24-2012, 12:04 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