Results 1 to 2 of 2
  1. #1
    PJPCVP is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    1

    opening a second form from main/subform

    Hello, I have a problem that I cannot figure out. 3 months ago I knew nothing about Access. Now I am building databases and learning everything about access that I can for work.

    I have a main form (ConsumerFrm) with a sub-form (IncidentFrm). I have established a one - many relationship with ConsumerID to ConsumerID from both tables. One consumer can have many incidents.

    Now, I have an "open form" button on my main form that will create a referral (ReferralFrm). I have fields from ConsumerFrm and fields from IncidentFrm that populates into the ReferralFrm. A one- many relationship has been established from ConsumerID to ConsumerID in the ReferralFrm.

    The current record from my main form populates into the ReferralFrm but the data from my subform does not. I keep getting the first incident record only and not the current incident record. As I said, one consumer can have more than one incident and the same consumer can have more than one Referral.

    Can someone please help figure out why only the first associated incident record keeps showing up with the current consumer record on my Referral form? I want the current consumer record and the current incident record to show up on the new referral form.

    Example:



    ConsumerID #1 and IncidentID #2 -------------> ReferralID #1

    however, the following shows up instead..

    ConsumerID #1 and IncidentID #1---------------> ReferralID #1

    I hope I made this simple to understand. Thank you for your time.

    Pjp

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    How are you selecting the "Current Incident" record in the SubForm?

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

Similar Threads

  1. Replies: 0
    Last Post: 07-26-2010, 04:36 PM
  2. Replies: 2
    Last Post: 03-31-2010, 01:56 PM
  3. Subform won't display in main form
    By Lynn in forum Forms
    Replies: 15
    Last Post: 03-22-2010, 10:17 AM
  4. Replies: 1
    Last Post: 09-28-2009, 05:21 PM
  5. Subform vs main form calculation
    By fadone in forum Forms
    Replies: 17
    Last Post: 12-21-2005, 07:27 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