Results 1 to 4 of 4
  1. #1
    Rudrabhadra is offline Novice
    Windows 10 Access 2016
    Join Date
    Dec 2023
    Posts
    2

    Cloning of records based on Criteria.

    Dear All,


    I am a trying to learn access. I am trying to make a database which will help me in my job.
    Appreciate if someone could help me on where I am stuck up.

    1. The Ref_No./ Ref_type / PID_Inst_Type & Installation_Typ combo boxes shall also have a null value so that the subform will show all the records pertaining to the selections on the combo boxes.

    2. Based on the selection of combo boxes, the selected/all records in the subform shall be duplicated (Btn_Duplicate_Click()) with the value in Nref_No instead of Ref_No (for the duplicated records)

    The sample file is attached for reference.

    Thanks in advance...
    Attached Files Attached Files

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

    What are the 3 tables supposed to represent?

    You have not set Referential Integrity between related tables.

    Each Table should have an Autonumber PK to identify each Unique Record.

    Any related tables should have a FK to link to the Parent PK.

    Can you explain what you are trying to use the database for?
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Seems very similar to this thread?
    https://www.accessforums.net/showthread.php?t=89105

    so possible solutions there?
    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

  4. #4
    Rudrabhadra is offline Novice
    Windows 10 Access 2016
    Join Date
    Dec 2023
    Posts
    2
    Thanks for your reply and the guidance on the shortfalls. I understand that I have to refresh my basics once again. I shall come back to the forum after rectifying the mentioned points.

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

Similar Threads

  1. Populating records based on complex criteria
    By Antonio in forum Queries
    Replies: 5
    Last Post: 05-16-2018, 08:23 AM
  2. Query Random records based on criteria
    By Grant Shea in forum Access
    Replies: 31
    Last Post: 09-09-2016, 03:10 PM
  3. Delete Duplicate Records Based on Criteria
    By chadd in forum Queries
    Replies: 2
    Last Post: 02-07-2012, 04:24 PM
  4. Cloning data to other existing records.
    By GraemeG in forum Programming
    Replies: 0
    Last Post: 02-16-2011, 11:53 AM
  5. Counting records based on specified criteria
    By GrnISSO in forum Queries
    Replies: 2
    Last Post: 10-04-2007, 03:07 PM

Tags for this Thread

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