G
Guest
Hi all
I created a main and subform with a formwizard with data from two tables. For example as a main form a contactperson with a linked subform with his adress(es). The problem lies within data-entry: when i enter new data in de contactperson form automatically a new contactpersonID is created. But when i click the linkbutton (togglelink) and insert, in de linked subform, some adress data, the foreign key (contactperson) isn't filled in automatically, it isn't even recognized. The same counts for adding new adress to an existing contactperson(ID): in the (filtered) subform the foreign key in the table is still zero. So one: the linkbutton to the subform doesn't save new records in the main form and two: the foreign key isnt automitacally updated.
I find this strange because when i use the same formwizard but instead create a main form with a nested subform then it works fine. I checked my relations between the tabels contacperson and adresses: They are one-to-many linked via ContactpersonsID integrity and all casacede options on. Can anyone help me with this problem, i dont have visual basic experience so i hope there is an alternative.
Greetings Tim
I created a main and subform with a formwizard with data from two tables. For example as a main form a contactperson with a linked subform with his adress(es). The problem lies within data-entry: when i enter new data in de contactperson form automatically a new contactpersonID is created. But when i click the linkbutton (togglelink) and insert, in de linked subform, some adress data, the foreign key (contactperson) isn't filled in automatically, it isn't even recognized. The same counts for adding new adress to an existing contactperson(ID): in the (filtered) subform the foreign key in the table is still zero. So one: the linkbutton to the subform doesn't save new records in the main form and two: the foreign key isnt automitacally updated.
I find this strange because when i use the same formwizard but instead create a main form with a nested subform then it works fine. I checked my relations between the tabels contacperson and adresses: They are one-to-many linked via ContactpersonsID integrity and all casacede options on. Can anyone help me with this problem, i dont have visual basic experience so i hope there is an alternative.
Greetings Tim