Results 1 to 3 of 3
  1. #1
    kkbharat is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2017
    Posts
    34

    Data entry form

    Hi All,

    I have a data entry form with main form and a subform with one to many relationship in it but because there are multiple record on the many side of the table the number of records shown in the form are more (because of the join type). What I am trying to achieve is that this form should have records only matching with the first record on the many side of the table.

    I tried by making a subquery which calculates the first entry and then connected this with the main query of the form and this way I am able to achieve what I am expecting but then I am not able to make data entries.

    Can someone please help.

    Thanks !!!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,522
    The main form, say Clients ,should show 1 record.(with the ClientID field on the main form)
    the sub form, say purchases, should be a continuous or datasheet,
    you can bind subform to the TABLE, tPurchases. (you can use a query, but dont need)
    make sure the field, tPurchases.ClientID, is on the subform

    in the subform properties, data tab,
    LINK MASTER FIELDS= ClientID
    and
    LINK CHILD FIELDS = ClientID

    now only records you will see in the subform will belong to the client in the main form.
    the only records you add will belong to that client.

    (you can hide the subform ClientID field if you want.)

  3. #3
    kkbharat is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2017
    Posts
    34
    Sir, thank you very much for your response. I am trying to keep the new data entry and the one with continuous form separate but then what you suggest is the easiest way to deal with my requirement.

    Thank you very much once again.

    Bharat

    Quote Originally Posted by ranman256 View Post
    The main form, say Clients ,should show 1 record.(with the ClientID field on the main form)
    the sub form, say purchases, should be a continuous or datasheet,
    you can bind subform to the TABLE, tPurchases. (you can use a query, but dont need)
    make sure the field, tPurchases.ClientID, is on the subform

    in the subform properties, data tab,
    LINK MASTER FIELDS= ClientID
    and
    LINK CHILD FIELDS = ClientID

    now only records you will see in the subform will belong to the client in the main form.
    the only records you add will belong to that client.

    (you can hide the subform ClientID field if you want.)

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

Similar Threads

  1. Replies: 2
    Last Post: 12-11-2015, 02:55 PM
  2. Replies: 3
    Last Post: 02-25-2015, 04:48 PM
  3. Replies: 5
    Last Post: 03-09-2014, 07:16 PM
  4. Replies: 7
    Last Post: 02-08-2014, 12:31 PM
  5. Replies: 5
    Last Post: 08-12-2013, 12:53 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