Re: Cannot add record for child table that have relationship with master table.
- From: "Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx>
- Date: Mon, 12 Jun 2006 12:04:42 +0200
Goh,
In addition to Kevin,
If your tables don't have a relation in the database than you have to add
that seperatly.
http://msdn2.microsoft.com/en-US/library/0k21zcyx.aspx
Of course have you to create the master record first before you can add any
details records.
I hope this helps,
Cor
"Goh" <goh@xxxxxxxxxxxxxxx> schreef in bericht
news:eCgihJejGHA.4972@xxxxxxxxxxxxxxxxxxxxxxx
Got a question examples the senario is like that.
if we got master and detail table.
detail table have a relationship with th master table with a primary key.
primary key is an auto number.
from my testing if master table show in "detail view" and detail table
show in "datagrid view" the add function for detail table work corrently
because of datagrid will automatic add primary key relation to the master
table primary key.
The problem come when detail table is shown in the form of "detail view"
there is no auto add primary key to detail table future. error will be
raise up, saying that primary key must be enter before add to the table.
But I can't know what is the current primary key for the master table.
And because of the master table have not update to database I also can't
get any the real primary key for the child table.
As result I can't add record for the detail table if I use "detail view"
layout How to solve this?
Please give me some advice about this.
Thanks in advance
Goh
.
- References:
- Prev by Date: RE: Cannot add record for child table that have relationship with master table.
- Next by Date: Web Service and Client
- Previous by thread: RE: Cannot add record for child table that have relationship with master table.
- Next by thread: RE: ORA-01036: illegal variable name/number
- Index(es):
Relevant Pages
|