TheInsider
Programmer
Hello,
This problem seems to occur in both Access 97 and 2000, so I assume that I am missing something here. I have a form which contains a Tab control. The forms recordset is simply a client table. The Tab control has 3 pages/tabs. On page 1 I use the fields from the form's recordsource. Pages 2 and 3 contain subforms. Page 2's subform takes orders and pertains to the orders table. Page 3's subform works similar, only with fields from yet another table. Link Child/Master fields are set to a unique user-defined alpha-numeric string value (which I'll call UniqueID here) - meaning that this is a primary key in the client table, but not an AutoNumber. The relationship is one client to many orders with cascade update and delete. The main form has a recordsource of type dynaset. When I create a new record and enter data into the first tab, thus entering information for the form's recordsource fields, when I click the next tab to enter an order (into the subform), I get a message that the Orders.UniqueID field cannot contain a NULL value. I would expect Access to cascade the value over from the Client table to the Orders table since I have assigned Child/Master link fields. This of course is not happening. Has anyone encountered this? I make it sound more complicated than it is. Basically, Access is not automatically forwarding the master field's value to the subform's child field. I tried entering only the tab 1 information, then closing and returning to the current record. The error message still comes up when I try to enter info on page 2 or 3.
Thanks in advance, Rob Marriott
rob@career-connections.net
This problem seems to occur in both Access 97 and 2000, so I assume that I am missing something here. I have a form which contains a Tab control. The forms recordset is simply a client table. The Tab control has 3 pages/tabs. On page 1 I use the fields from the form's recordsource. Pages 2 and 3 contain subforms. Page 2's subform takes orders and pertains to the orders table. Page 3's subform works similar, only with fields from yet another table. Link Child/Master fields are set to a unique user-defined alpha-numeric string value (which I'll call UniqueID here) - meaning that this is a primary key in the client table, but not an AutoNumber. The relationship is one client to many orders with cascade update and delete. The main form has a recordsource of type dynaset. When I create a new record and enter data into the first tab, thus entering information for the form's recordsource fields, when I click the next tab to enter an order (into the subform), I get a message that the Orders.UniqueID field cannot contain a NULL value. I would expect Access to cascade the value over from the Client table to the Orders table since I have assigned Child/Master link fields. This of course is not happening. Has anyone encountered this? I make it sound more complicated than it is. Basically, Access is not automatically forwarding the master field's value to the subform's child field. I tried entering only the tab 1 information, then closing and returning to the current record. The error message still comes up when I try to enter info on page 2 or 3.
Thanks in advance, Rob Marriott
rob@career-connections.net