how to set an ID before data is filled

johmolan

Well-known member
Joined
Oct 11, 2008
Messages
129
Programming Experience
Beginner
Hi,

I am using a sql server connected to visual studio 2008,

I have 2 tables in the dataset "customer" and "ordre"
I have made relation between them where KundeID is primary key in "customer"
and foreign key in "ordre"

Now I would like tho chose which data to fill into the ordre table based on the KundeID.

Does anyone know howto?

I only get the data for KundeID = 1 all the time :( and I can't figure out how to set it in a way that all the tableadapters know what data to fill.
 
See the DW2 link in my sig, section "Creating a Form to Search Data"
Note the box in the top right for updates to the tutorial for your version of .net
 
Back
Top