Home » Developer & Programmer » Forms » make a master and detail for the same table
make a master and detail for the same table [message #173702] Wed, 24 May 2006 02:11 Go to next message
emadbsb
Messages: 334
Registered: May 2005
Location: egypt
Senior Member

Hii all

can i make a master block and a detail block for the same table in my form?


Thanks for everyone helped and helping me
Re: make a master and detail for the same table [message #173746 is a reply to message #173702] Wed, 24 May 2006 05:40 Go to previous messageGo to next message
Rehan Mirza
Messages: 67
Registered: July 2004
Location: Pakistan
Member

Yes it is possible Just like if recursive reletion is exist

like In emp table EMPNO and MGR

if any problem exist please mail me at mirza_rehan@yahoo.com

Best regards
R E H A N M I R Z A
Re: make a master and detail for the same table [message #173972 is a reply to message #173702] Thu, 25 May 2006 07:29 Go to previous message
harpreetsinghkup
Messages: 52
Registered: May 2006
Location: Mumbai
Member
making master-detail table for the same table is quite easy
i just give u the basic idea of ur query as i feel it is sufficient
for u and from that it is quite easy to explore further.
just follow these steps
1. use data block wizard and create the data block
2. then another time use the data block wizard to create the next data block of the same table
3. dont create the releationship now
4. u create the relationship manually to make it master detail
5. to prevent the insert of the master data block record
just create "on-insert" trigger on master block and type the "NULL"
inside the coding section
6. to further prevent the update,delete just create the triggers
on-update,on-delete and type the null;
this will enter just the one record of the detail block
and u can perform query on the master block
hope that it will help u
Previous Topic: how use sumry column in form
Next Topic: OLE2 - Excel crashing after exit.. need a little help please gurus
Goto Forum:
  


Current Time: Fri Sep 20 09:58:16 CDT 2024