Click here to Skip to main content
15,909,645 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to get the line number Pin
Ray Cassick8-Aug-03 5:04
Ray Cassick8-Aug-03 5:04 
AnswerRe: How to get the line number Pin
Skippy II17-Aug-03 6:52
Skippy II17-Aug-03 6:52 
GeneralQuick question about classes in VB.NET Pin
CodeChicken7-Aug-03 13:20
CodeChicken7-Aug-03 13:20 
GeneralRe: Quick question about classes in VB.NET Pin
CodeChicken10-Aug-03 8:38
CodeChicken10-Aug-03 8:38 
GeneralRe: Quick question about classes in VB.NET Pin
Csharp™10-Aug-03 9:01
Csharp™10-Aug-03 9:01 
GeneralButton Sizes Pin
totig7-Aug-03 12:16
totig7-Aug-03 12:16 
GeneralRe: Button Sizes Pin
Hesham Amin8-Aug-03 4:03
Hesham Amin8-Aug-03 4:03 
GeneralOLE Databinding Pin
Milancie7-Aug-03 10:01
Milancie7-Aug-03 10:01 
Confused | :confused:
The following works if only one row & one column is returned in a function

Dim ssql As String
ssql = "select full_name from EMPLOYEE WHERE full_name = '" & usertoLookup & "'"
Dim myCommand As New OleDb.OleDbCommand(ssql, OleDbConnection1)
OleDbConnection1.Open()
EngActivitiesToFind = myCommand.ExecuteScalar()
myCommand.Dispose()
OleDbConnection1.Close()

The following works if dataset / dataview returns multiple rows to bind to datagrid in a function

Dim myCommand As New OleDb.OleDbCommand(strsql, myConnection)
Dim MyAdapter As New OleDb.OleDbDataAdapter(myCommand)
myConnection.Open()
MyActivityDataSet.Clear()
MyAdapter.Fill(MyActivityDataSet, "dcr_track")
EngActivityDataView.Table.Clear()
DataGrid_DCR.Refresh()
EngActivityDataView = MyActivityDataSet.Tables("dcr_track").DefaultView
DataGrid_DCR.DataSource = EngActivityDataView


But how do you handle it in a single function if sometimes your retrieve returns multiple rows and other times a single row dependent on a query that is dynamic and dependent on user input

Thanks

Milancie
GeneralRe: OLE Databinding Pin
pxw16-Aug-03 6:38
pxw16-Aug-03 6:38 
Generalaccess to outlook inbox Pin
pnpfriend7-Aug-03 9:45
pnpfriend7-Aug-03 9:45 
GeneralRe: access to outlook inbox Pin
Dave Kreskowiak8-Aug-03 4:20
mveDave Kreskowiak8-Aug-03 4:20 
GeneralRe: access to outlook inbox Pin
pnpfriend8-Aug-03 5:39
pnpfriend8-Aug-03 5:39 
GeneralRe: access to outlook inbox Pin
Dave Kreskowiak8-Aug-03 11:46
mveDave Kreskowiak8-Aug-03 11:46 
GeneralRe: access to outlook inbox Pin
pnpfriend10-Aug-03 4:18
pnpfriend10-Aug-03 4:18 
GeneralRe: access to outlook inbox Pin
pnpfriend10-Aug-03 4:57
pnpfriend10-Aug-03 4:57 
Generalprinting to the printer with vb.net Pin
yulyos7-Aug-03 6:04
yulyos7-Aug-03 6:04 
GeneralRe: printing to the printer with vb.net Pin
pnpfriend7-Aug-03 10:21
pnpfriend7-Aug-03 10:21 
GeneralRe: printing to the printer with vb.net Pin
yulyos7-Aug-03 20:57
yulyos7-Aug-03 20:57 
GeneralRe: printing to the printer with vb.net Pin
pnpfriend8-Aug-03 5:50
pnpfriend8-Aug-03 5:50 
GeneralRe: printing to the printer with vb.net Pin
yulyos8-Aug-03 6:06
yulyos8-Aug-03 6:06 
GeneralRe: printing to the printer with vb.net Pin
pnpfriend8-Aug-03 8:48
pnpfriend8-Aug-03 8:48 
GeneralRetreving an auto number field from Access Pin
GrGonzo6-Aug-03 13:50
GrGonzo6-Aug-03 13:50 
GeneralRe: Retreving an auto number field from Access Pin
Bo Hunter7-Aug-03 14:32
Bo Hunter7-Aug-03 14:32 
GeneralPossible Vb Question Pin
droesch6-Aug-03 7:06
droesch6-Aug-03 7:06 
GeneralRe: Possible Vb Question Pin
RichardGrimmer18-Aug-03 4:07
RichardGrimmer18-Aug-03 4:07 

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.