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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple PL/SQL question

Status
Not open for further replies.

Apprentice101

IS-IT--Management
Aug 16, 2004
66
US
I have a form with a master-detail blocks.

I would like that as a new detail record is created, a sequential number is generated for that particular master record only

for instance.
master record
Jonh

details (brothers)
mary
Susan
Karla

so I want to have a column next to the detail names that will have the values 1,2,3 respectevly. And as a new name gets inserted, (Claudia) a number 4 will be generated.

This numeric value should only affect John, so if Douglas (another master record) gets interted, the value should be 1 again for row one on the details section.

so how do I do this?
thanks!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top