Click here to Skip to main content
16,007,885 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionOpening Multiple Files Pin
GeorgieMPorgie1-Feb-06 6:07
GeorgieMPorgie1-Feb-06 6:07 
AnswerRe: Opening Multiple Files Pin
Dave Kreskowiak1-Feb-06 6:52
mveDave Kreskowiak1-Feb-06 6:52 
GeneralRe: Opening Multiple Files Pin
GeorgieMPorgie1-Feb-06 7:18
GeorgieMPorgie1-Feb-06 7:18 
QuestionSecurity policy problem Pin
luciodandrea1-Feb-06 6:01
luciodandrea1-Feb-06 6:01 
AnswerRe: Security policy problem Pin
Dave Kreskowiak1-Feb-06 6:45
mveDave Kreskowiak1-Feb-06 6:45 
GeneralRe: Security policy problem Pin
luciodandrea2-Feb-06 0:36
luciodandrea2-Feb-06 0:36 
GeneralRe: Security policy problem Pin
Dave Kreskowiak2-Feb-06 1:38
mveDave Kreskowiak2-Feb-06 1:38 
QuestionMerging DATASET (Duplicating Rows) Pin
AlexeiXX31-Feb-06 4:53
AlexeiXX31-Feb-06 4:53 
Hi all, im having a little problem with this method, im merging two datasets (same table, im just trying to refresh a table, just in case it has been changed by someone else), and it duplicates rows, i think it must be because of the primary keys, Arent primary keys supossed to be in the dataset since I opened the table?? Here is my code:
*OpenTbl is just a function that returns a datatable

ds1.Tables.Add(OpenTbl("SELECT * FROM Adscripciones", "Adscripciones"))
ds2.Tables.Add(OpenTbl("SELECT * FROM Adscripciones", "Adscripciones"))
ds1.Merge(ds2)
Me.DataGridView1.DataSource = ds1.Tables("Adscripciones")
===========The previous code duplicates rows

ds1.Tables.Add(OpenTbl("SELECT * FROM Adscripciones", "Adscripciones"))
Dim Key(1) As DataColumn
Key(0) = ds1.Tables(0).Columns(0)
ds1.Tables(0).PrimaryKey = Key
ds2.Tables.Add(OpenTbl("SELECT * FROM Adscripciones", "Adscripciones"))
ds1.Merge(ds2)
Me.DataGridView1.DataSource = ds1.Tables("Adscripciones")
==========This wont duplicate, but i have to specify primary keys, and i wouldnt like that since im trying to make a generic routine to open tables.
Is there any way to get primary keys information and use it for the merge method without specifying primary keys??
I hope anyone can help me, Ill apreciate it
Thank You

Alexei
QuestionMerging DATASET (Duplicating Rows) Pin
AlexeiXX31-Feb-06 5:21
AlexeiXX31-Feb-06 5:21 
GeneralRe: Merging DATASET (Duplicating Rows) Pin
AlexeiXX31-Feb-06 5:22
AlexeiXX31-Feb-06 5:22 
AnswerI know how, Thank Anyway Pin
AlexeiXX31-Feb-06 6:18
AlexeiXX31-Feb-06 6:18 
QuestionVB6 : HOW TO LINK DATA BETWEEN 2 FORM Pin
steventry1-Feb-06 4:16
steventry1-Feb-06 4:16 
AnswerRe: VB6 : HOW TO LINK DATA BETWEEN 2 FORM Pin
militiaware1-Feb-06 4:28
militiaware1-Feb-06 4:28 
GeneralRe: VB6 : HOW TO LINK DATA BETWEEN 2 FORM Pin
Colin Angus Mackay1-Feb-06 5:54
Colin Angus Mackay1-Feb-06 5:54 
GeneralRe: VB6 : HOW TO LINK DATA BETWEEN 2 FORM Pin
Dave Kreskowiak1-Feb-06 6:02
mveDave Kreskowiak1-Feb-06 6:02 
GeneralRe: VB6 : HOW TO LINK DATA BETWEEN 2 FORM Pin
nata20061-Feb-06 22:59
nata20061-Feb-06 22:59 
GeneralRe: VB6 : HOW TO LINK DATA BETWEEN 2 FORM Pin
militiaware1-Feb-06 23:36
militiaware1-Feb-06 23:36 
QuestionTAPI & MSComm Control Pin
Nishanthbster31-Jan-06 23:35
Nishanthbster31-Jan-06 23:35 
QuestionWhy my image is not getting resized? the code is included Pin
JUNEYT31-Jan-06 23:09
JUNEYT31-Jan-06 23:09 
QuestionWhy my image is not getting resized? the code is included Pin
JUNEYT31-Jan-06 23:04
JUNEYT31-Jan-06 23:04 
QuestionHow am I to change the Regional Language Settings in VB.Net Pin
Ganesh Pradeep31-Jan-06 23:00
Ganesh Pradeep31-Jan-06 23:00 
Questionhow can i attch file to send without modem dial up in windows form? Pin
pantaloo31-Jan-06 21:09
pantaloo31-Jan-06 21:09 
AnswerRe: how can i attch file to send without modem dial up in windows form? Pin
malharone1-Feb-06 11:32
malharone1-Feb-06 11:32 
AnswerRe: how can i attch file to send without modem dial up in windows form? Pin
pantaloo1-Feb-06 23:10
pantaloo1-Feb-06 23:10 
QuestionRound Function Pin
PremalathaP31-Jan-06 19:18
PremalathaP31-Jan-06 19:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.