main logo
Subject: Problems with Fetch-Parent Key
Author: Lynette Tillner
Posted: 2001/11/29 23:59:55
 
View Entire Thread
New Search


I am having a consistent problem that doesn't generate an error with my forms. On my child forms, I always check "Auto-fill link to parent" and put the name of the field in the FK Field Name.

I do NOT check:
"Add records to child objects on adding a New Parent"
NOR "Add a new record on new Parent"

--- when I then click on the cnavtoolbar "add" button to add a new record, the new record comes up with a new CID (because cbnewid() works) but the FK Field is always BLANK. I watch the lparameters I am passing and I know that the correct info is passed to the form for the parent key. What am I doing wrong? Do I have to have "

I have a work around which partially works -- in my init code I specify:

thisform.txtparentkey.value = lcparentkey but you have to set focus to the field to get the value to show and I would rather have the code work correctly.

Any ideas what I have missed that this is not giving me an error and NOT working?

Thanks!

Lynette
Lynette
ltillner /at/ yahoo DO.T com

 
©2001 Lynette Tillner
<-- Prior Message New Search Next Message -->