Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Relation missing

Status
Not open for further replies.

astech

Programmer
Jul 25, 2000
59
ID
i put this code in load form:

USE (thisform.mstdata) IN 0 ORDER(thisform.mstorder) shared
SELECT (thisform.mstdata)

USE (thisform.dtldata) IN 0 ORDER(thisform.dtlorder) shared
SELECT (thisform.dtldata)

SELECT (thisform.mstdata)
SET RELATION TO (thisform.mstorder) INTO (thisform.dtldata) addi

****
when form loaded the relation created is broken.
Somebody know what a mistake ?

Thanks
 
Hi

Switch the code from the Load event to the DEs Init or to the FORMS Init.

When the Load is taking place, the thisform.mstorder etc. are not yet initialised and so do not have any values.

The values will be available after the Init is completed.

:)

____________________________________________
ramani - (Subramanian.G) :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top