473,386 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to define primary key in Master-Detail Table.

For example, Invoice and InvoiceCharges
Invoice No should be the primary key in Invoice Table,
However, for the Invoice Charges, what primary key I should design ?
I put 'recid' in the InvoiceCharges table, set it identity to Y and
autoincrement in SQL Table Designer.
In fact, I want to set recid as primary key in Charges Table.

Too bad, I found that If I use data set and dataadapter to store the Invoice
& charges information.
If I didn't re-fill the dataset, the recid didn't generate in Charge Table .
EVEN I process dataAdapter.update or dataset.acceptchanges.

There is a datagrid for the user to input charges, How should I set the
primary automically ?
Please give some advice.

--
..
Nov 21 '05 #1
0 1060

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: jasper | last post by:
hi, i am trying to make a very simple program that will just detect and output your currently connected IDE devices. It will look something like this: IDE PRIMARY MASTER: IDE PRIMARY SLAVE:...
14
by: Sanjay Minni | last post by:
What is the datatype to be used for Primary Key columns for most optimised access given that - There will be a single column primary key only - The values will only be integers (but as...
17
by: Philip Yale | last post by:
I'm probably going to get shot down with thousands of reasons for this, but I've never really heard or read a convincing explanation, so here goes ... Clustered indexes are more efficient at...
1
by: Giadis | last post by:
I seem to be having problems with a very simple install of MSDE on a Windows 2000 Server. When attempting to add new records, I receive the message "Could not allocate space for object 'MyTable'...
9
by: pozz | last post by:
Hi all, I have the below #defines #define NUMBER1 30 #define NUMBER2 50 #define SUM (NUMBER1+NUMBER2) #define STRING1 "Byte: \x30" #define STRING2 "Byte: \x50"...
5
by: Goater | last post by:
Hi, This is my first time posting, but from reading previous posts this seems to be the place to go for any Access problems. I am currently making a Duplicate invoice checker. I have one...
2
by: Sebho | last post by:
Hi, i have an asp page (page1.aspx) that inherits from a masterpage (MasterPage.master) so i try to define a stylesheet (mystyle.css) page to Page1.aspx and i have to put a <linktag between...
1
by: sindhu | last post by:
Hi all, i have a master and deatils gridview. when the master grid is clicked selecting a row i want the details of the row desrciber in the details grid. i want to fetch maainly the primary key...
1
by: =?Utf-8?B?UmFyYSBBdmlz?= | last post by:
What is this "local folder" thing with Mozilla Thunderbird? It has its own inbox, sent box, drafts and delete boxes, and some of my mail to my Thunderbird address is there, but I want it all in my...
4
by: harijay | last post by:
Hi I am new to writing module and object oriented python code. I am trying to understand namespaces and classes in python. I have the following test case given in three files runner , master and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.