Click here to Skip to main content
15,894,343 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: retrive data from Database in table form Pin
J4amieC19-Dec-05 3:49
J4amieC19-Dec-05 3:49 
GeneralRe: retrive data from Database in table form Pin
jcrussell19-Dec-05 12:41
jcrussell19-Dec-05 12:41 
QuestionExperts! help in scaling the images in vb.net Pin
JUNEYT18-Dec-05 12:24
JUNEYT18-Dec-05 12:24 
AnswerSample code Pin
lijocm19-Dec-05 2:04
lijocm19-Dec-05 2:04 
GeneralRe: Sample code Pin
toxcct19-Dec-05 2:20
toxcct19-Dec-05 2:20 
GeneralRe: Sample code Pin
Dave Kreskowiak19-Dec-05 7:22
mveDave Kreskowiak19-Dec-05 7:22 
GeneralRe: Sample code Pin
jonathan1520-Dec-05 2:37
jonathan1520-Dec-05 2:37 
QuestionParametrized query on related tables - VB.NET2003 Pin
liquid_18-Dec-05 9:15
liquid_18-Dec-05 9:15 
The problem is how to make use of relation between tables when I try to use parametrized query on the master table.
The code is like this:
1. Created data adapters
SqlDataAdapter1 - for first table, eg. PurchaseOrders with primary key PONum
SqlDataAdapter2 - for second table, eg. PurchaseOrderItems with primary key of two fields PONum<->POItemNum
2. Created data set
DataSet11 - for two related tables (one-to-many relation), joined by the key PONum
3. Filled the data set of data grid
SqlDataAdapter1.Fill(Me.DataSet11)<br />
SqlDataAdapter2.Fill(Me.DataSet11)


Then when I do not use the parametrized query the filling is done without errors. But when I modify SQL command of the SqlDataAdapter1 to use WHERE clause with parameter (eg. PO date) I get the error message. It cannot enforce constraints.

How to overcome this problem?


-- modified at 16:38 Monday 19th December, 2005
QuestionProblem with the coding..(VB6) Pin
mellvincent18-Dec-05 5:16
mellvincent18-Dec-05 5:16 
AnswerRe: Problem with the coding..(VB6) Pin
KaptinKrunch19-Dec-05 2:36
KaptinKrunch19-Dec-05 2:36 
GeneralRe: Problem with the coding..(VB6) Pin
S Douglas19-Dec-05 22:17
professionalS Douglas19-Dec-05 22:17 
AnswerRe: Problem with the coding..(VB6) Pin
S Douglas19-Dec-05 22:15
professionalS Douglas19-Dec-05 22:15 
QuestionGetting started (beginner) Pin
mellvincent18-Dec-05 3:46
mellvincent18-Dec-05 3:46 
AnswerRe: Getting started (beginner) Pin
Colin Angus Mackay18-Dec-05 5:19
Colin Angus Mackay18-Dec-05 5:19 
Questionmemory allocation Pin
_tasleem17-Dec-05 22:51
_tasleem17-Dec-05 22:51 
AnswerRe: memory allocation Pin
Colin Angus Mackay18-Dec-05 5:27
Colin Angus Mackay18-Dec-05 5:27 
QuestionOpeing a Form based on a Query Pin
R. A. Abbasi17-Dec-05 19:28
R. A. Abbasi17-Dec-05 19:28 
AnswerRe: Opeing a Form based on a Query Pin
Dave Kreskowiak18-Dec-05 11:52
mveDave Kreskowiak18-Dec-05 11:52 
GeneralRe: Opeing a Form based on a Query Pin
R. A. Abbasi18-Dec-05 13:47
R. A. Abbasi18-Dec-05 13:47 
GeneralRe: Opeing a Form based on a Query Pin
Dave Kreskowiak18-Dec-05 14:46
mveDave Kreskowiak18-Dec-05 14:46 
Questiondbf with VB.Net (2005) Pin
Rainer_4217-Dec-05 11:41
Rainer_4217-Dec-05 11:41 
AnswerRe: dbf with VB.Net (2005) Pin
Mekong River17-Dec-05 16:49
Mekong River17-Dec-05 16:49 
AnswerRe: dbf with VB.Net (2005) Pin
albCode19-Dec-05 5:01
albCode19-Dec-05 5:01 
QuestionDatabase help Pin
Binary011017-Dec-05 8:51
Binary011017-Dec-05 8:51 
AnswerRe: Database help Pin
Christian Graus17-Dec-05 22:12
protectorChristian Graus17-Dec-05 22:12 

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.