cheuschober
Muse of Fire
- Local time
- Today, 12:06
- Joined
- Oct 25, 2004
- Messages
- 168
Heya folks.
This is a pickle I've been working off an on for two weeks but now seems to be the time to stop it.
I have two tables, tbl1 and lkup1 in an obvious many-1 relationship. The key for lkup1 is comprised of two fields key1 and key2 and we'll call the related fields in tbl1 fk1 and fk2. The form for tbl1 has fk1 and fk2 as a pair of cascading comboboxes where fk2 cascades off of fk1.
I want to allow my user, in the very rare chance he will need it, to be able to add a record to lkup1 from the same form data entry occurs for tbl1 if a record doesn't exist in the lookup table. There are a few additional required fields in lkup1 so the standard Not-in-list recordset event doesn't work.
I have my additional fields to lkup1 as a hidden subform on the main form and know how to set focus and all that. What I can't figure out how to do is simulate a not-in-list event or supress the response so that I can actually set focus to my subform, enter the data, and add a record to my lkup.
Any thoughts? Regards,
Chad
This is a pickle I've been working off an on for two weeks but now seems to be the time to stop it.
I have two tables, tbl1 and lkup1 in an obvious many-1 relationship. The key for lkup1 is comprised of two fields key1 and key2 and we'll call the related fields in tbl1 fk1 and fk2. The form for tbl1 has fk1 and fk2 as a pair of cascading comboboxes where fk2 cascades off of fk1.
I want to allow my user, in the very rare chance he will need it, to be able to add a record to lkup1 from the same form data entry occurs for tbl1 if a record doesn't exist in the lookup table. There are a few additional required fields in lkup1 so the standard Not-in-list recordset event doesn't work.
I have my additional fields to lkup1 as a hidden subform on the main form and know how to set focus and all that. What I can't figure out how to do is simulate a not-in-list event or supress the response so that I can actually set focus to my subform, enter the data, and add a record to my lkup.
Any thoughts? Regards,
Chad