Home » Developer & Programmer » Forms » Master Detail Save Problem
Master Detail Save Problem [message #136377] Wed, 07 September 2005 16:13 Go to next message
mlodymaytek
Messages: 9
Registered: June 2005
Location: poland
Junior Member
I have master detail form.
I use standart relationship
and when i create new record in master and detail and i want to save it i have error FRM 40508
When i have master record save and in next step add the detail record every thing is ok...
Re: Master Detail Save Problem [message #136399 is a reply to message #136377] Wed, 07 September 2005 21:40 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Next time please give the text of the message as well as its number, it saves us time.

What is the 'extra' part of the 'unable to insert' message.

Where are you creating your primary key? In a trigger which does not facilitate the populating of the entry in the detail record. Put code into the Pre-Insert trigger in the form to populate the primary key, then the 'Copy from' in the detail block has something to copy.

David

[Updated on: Sun, 11 September 2005 20:59]

Report message to a moderator

Re: Master Detail Save Problem [message #136809 is a reply to message #136399] Sat, 10 September 2005 16:16 Go to previous messageGo to next message
mlodymaytek
Messages: 9
Registered: June 2005
Location: poland
Junior Member
thx and sory for problem
But it stil dont work.
Re: Master Detail Save Problem [message #136810 is a reply to message #136399] Sat, 10 September 2005 17:16 Go to previous message
mlodymaytek
Messages: 9
Registered: June 2005
Location: poland
Junior Member
Okio i found the mistake. The master block must be over the detail block im form explorer

Sorry once more and Thx
Previous Topic: Help me
Next Topic: Strange problem on Win2000 SP4 clients- Form does not execute but compile successfully
Goto Forum:
  


Current Time: Fri Sep 20 00:41:23 CDT 2024