Click here to Skip to main content
16,006,883 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Question[Message Deleted] Pin
GitaWist16-Jan-06 2:08
GitaWist16-Jan-06 2:08 
GeneralRe: help me pls!!! Pin
Guffa16-Jan-06 2:45
Guffa16-Jan-06 2:45 
AnswerRe: help me pls!!! Pin
Steve Pullan16-Jan-06 11:16
Steve Pullan16-Jan-06 11:16 
QuestionSearching a dataset using VB.Net Pin
mayhem_rules16-Jan-06 1:14
mayhem_rules16-Jan-06 1:14 
AnswerRe: Searching a dataset using VB.Net Pin
Robert Rohde16-Jan-06 1:25
Robert Rohde16-Jan-06 1:25 
GeneralRe: Searching a dataset using VB.Net Pin
mayhem_rules16-Jan-06 2:36
mayhem_rules16-Jan-06 2:36 
GeneralRe: Searching a dataset using VB.Net Pin
Robert Rohde16-Jan-06 3:53
Robert Rohde16-Jan-06 3:53 
GeneralRe: Searching a dataset using VB.Net Pin
mayhem_rules16-Jan-06 17:20
mayhem_rules16-Jan-06 17:20 
Hi Robert,

I have created a dataview of the entire dataset and sorted it as per PERIOD DESC.

str2 = "select pfc,price,period from price where price <> 0 "
con.Open()
DA2 = New OleDbDataAdapter(str2, pcon)
DS2 = New DataSet
DA2.Fill(DS2, "price")
con.Close()
DV = New DataView(DS2.Tables("price"))
DV.Sort = "Period Desc"

''' I have not applied any filter since the the data does not contain any zero prices (see str2).

//Get the first KK value
object firstKK = dataView[0]["KK"];
//Iterate over all values
foreach (DataRowView drv in dataView) {
//get original row
DataRow dr = drv.Row;
//do anything you want
}

'''Robert, I am not able to understand the above code. I will explain my requirement.
*The dataset which I fetch above contains data over 24 months.
*pfc is a unique id.
*When I get the data into the dataset, it contains all the records for each pfc where price <> 0.
*I am getting another set of pfc's from a different table into a new dataset. I want to obtain the price for each pfc from this dataset for the latest period (yyyymm).
Robert, Can you tell me how this can be done. I do not want ot query the database for each pfc as it is taking a lot of time.
Thnx for your help.

With Best Regards,

Mayur
GeneralRe: Searching a dataset using VB.Net Pin
Robert Rohde16-Jan-06 20:25
Robert Rohde16-Jan-06 20:25 
GeneralRe: Searching a dataset using VB.Net Pin
mayhem_rules16-Jan-06 23:01
mayhem_rules16-Jan-06 23:01 
GeneralRe: Searching a dataset using VB.Net Pin
Robert Rohde17-Jan-06 1:14
Robert Rohde17-Jan-06 1:14 
GeneralRe: Searching a dataset using VB.Net Pin
mayhem_rules17-Jan-06 19:26
mayhem_rules17-Jan-06 19:26 
QuestionOh! I forget how to make a string with this " content!! Pin
cylix200016-Jan-06 0:29
cylix200016-Jan-06 0:29 
AnswerRe: Oh! I forget how to make a string with this " content!! Pin
Guffa16-Jan-06 0:57
Guffa16-Jan-06 0:57 
AnswerRe: Oh! I forget how to make a string with this " content!! Pin
Steve Pullan16-Jan-06 11:09
Steve Pullan16-Jan-06 11:09 
QuestionMS word 11 interop Pin
MichaelWithersone15-Jan-06 23:54
MichaelWithersone15-Jan-06 23:54 
QuestionADD EXCEL REFRENCE Pin
vivek_pon15-Jan-06 23:14
vivek_pon15-Jan-06 23:14 
AnswerRe: ADD EXCEL REFRENCE Pin
Christian Graus16-Jan-06 11:52
protectorChristian Graus16-Jan-06 11:52 
AnswerRe: ADD EXCEL REFRENCE Pin
GitaWist16-Jan-06 14:03
GitaWist16-Jan-06 14:03 
QuestionProblem on Migrating from VB to VB.NET. Please help me. Pin
drexler_kk15-Jan-06 22:42
drexler_kk15-Jan-06 22:42 
AnswerRe: Problem on Migrating from VB to VB.NET. Please help me. Pin
Guffa15-Jan-06 23:25
Guffa15-Jan-06 23:25 
GeneralRe: Problem on Migrating from VB to VB.NET. Please help me. Pin
drexler_kk16-Jan-06 17:13
drexler_kk16-Jan-06 17:13 
AnswerRe: Problem on Migrating from VB to VB.NET. Please help me. Pin
Guffa19-Jan-06 21:37
Guffa19-Jan-06 21:37 
AnswerRe: Problem on Migrating from VB to VB.NET. Please help me. Pin
Steve Pullan16-Jan-06 11:10
Steve Pullan16-Jan-06 11:10 
GeneralRe: Problem on Migrating from VB to VB.NET. Please help me. Pin
drexler_kk16-Jan-06 17:16
drexler_kk16-Jan-06 17:16 

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.