HI, I have a header form and a detail(sub form). When i press F3 for new record on the header form the cursor moves to the child form. What could be the reason? Regards[8D]
Check the Form property ActiveControlOnOpen.
quote:
Originally posted by jsrark
Check the Form property ActiveControlOnOpen.
When the form opens focus is on the header only. But the moment i press F3 focus goes to the child form. [:o)]
Is there any Code in the On-Insert-Trigger of the header form? Greetings, Frank
HI, Code is written in the On-Insert-Trigger of the header table. It’s finding the record on the basis of Primary Key. Regards
quote:
Originally posted by FPulsfort
Is there any Code in the On-Insert-Trigger of the header form? Greetings, Frank
I mean the OnInsert-Trigger of the Form. Is there any code? if so, please post it here. Greetings, Frank
Following code is wriiten in the oninsert trigger of the header form. GenJnlBatch.GET(“Journal Template Name”,“Journal Batch Name”); IF GenJnlBatch.“No. Series”<>‘’ THEN BEGIN NoSeries := GenJnlBatch.“No. Series”; “Document No.” := NoSeriesMgt.TryGetNextNo(NoSeries,WORKDATE); END; Regards[:)]
quote:
Originally posted by FPulsfort
I mean the OnInsert-Trigger of the Form. Is there any code? if so, please post it here. Greetings, Frank
Are you sure that you have a “real” header-subform-form, i. e. do header and subform have diffent source tables? For me it looks like you have a journal where there is only one source table…
My thoughts exactly, Beaver.
It’s true header-sub form