View Single Post
  #7  
Old March 10th, 2008, 06:48 PM posted to microsoft.public.access.forms
-LWG-[_2_]
external usenet poster
 
Posts: 1
Default SUBFORM - AUTO POPULATE PRIMARY KEY

School (Main Form) record source = School

Courses (Sub Form 1) record source = Courses. Master/Child = School ID.

Sites (Sub Form 2) record source = Sites. Master/Child = Course ID.

The database needs to do this:

1 School has many Courses. Each course has many sites. From the Course
subform (to Schools) I want an action button that filters the sites for the
selected course...

Thanks...

"John W. Vinson" wrote:

On Thu, 6 Mar 2008 10:52:00 -0800, -LWG-
wrote:

Main Form: School
Subform: Courses (1 to many from School)
Subform2: Sites (1 to many from Courses)

Everything works fine when the form and both subforms are displayed. When I
add a record to subform2 the Courses ID auto-populates which I want.

However, when I open Subform2 from an action button and click add record,
the Course ID does not auto-populate.

Help?


What's the Recordsource of each form? Post the SQL. Why should CourseID
autopopulate, if it's not (part of) the master/child link field?
--
John W. Vinson [MVP]