Click here to Skip to main content
15,915,763 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: CountDown between dates Pin
im_hoser26-Oct-05 10:59
im_hoser26-Oct-05 10:59 
AnswerRe: CountDown between dates Pin
rwestgraham26-Oct-05 13:03
rwestgraham26-Oct-05 13:03 
AnswerRe: CountDown between dates Pin
George B Gilbert27-Oct-05 7:45
George B Gilbert27-Oct-05 7:45 
AnswerRe: CountDown between dates Pin
George B Gilbert27-Oct-05 8:25
George B Gilbert27-Oct-05 8:25 
GeneralRe: CountDown between dates Pin
im_hoser27-Oct-05 14:20
im_hoser27-Oct-05 14:20 
QuestionInstallation on a remote computer. Pin
Jim Wilcox26-Oct-05 8:07
Jim Wilcox26-Oct-05 8:07 
AnswerRe: Installation on a remote computer. Pin
rwestgraham26-Oct-05 14:48
rwestgraham26-Oct-05 14:48 
Questionsql problem Pin
microuser_200026-Oct-05 6:09
microuser_200026-Oct-05 6:09 
hellow to all..
i am writeing a code that works on database in sqlserver ..
i wrote the following code

Dim sSQL As String
sSQL = "Select * From Cities"

Try

conSQL.Open()
Dim MyDataReader As SqlClient.SqlDataReader
Dim MySqlCommand As SqlClient.SqlCommand

Dim MyDataSet As DataSet = New DataSet
Dim MySqlDataAdapter As SqlClient.SqlDataAdapter
MySqlDataAdapter.SelectCommand = New SqlClient.SqlCommand(sSQL,conSQL)
MySqlDataAdapter.Fill(MyDataSet)
MySqlCommand.Connection = (conSQL)
MySqlCommand.CommandText = sSQL

MyDataReader = MySqlCommand.ExecuteReader


Do While MyDataReader.Read

cmbCity.Items.Add(MyDataReader(0))

Loop


MyDataReader.Close()
conSQL.Close()
conSQL.Dispose()


i get the following error
"Object refrence not set to an instance of an object"

thank's for the help ..


AnswerRe: sql problem Pin
Joshua Quick26-Oct-05 8:14
Joshua Quick26-Oct-05 8:14 
GeneralRe: sql problem Pin
microuser_200026-Oct-05 8:25
microuser_200026-Oct-05 8:25 
GeneralRe: sql problem Pin
Joshua Quick26-Oct-05 9:01
Joshua Quick26-Oct-05 9:01 
GeneralRe: sql problem Pin
microuser_200026-Oct-05 11:09
microuser_200026-Oct-05 11:09 
QuestionRemove Duplications Pin
stevelam26-Oct-05 5:27
stevelam26-Oct-05 5:27 
AnswerRe: Remove Duplications Pin
George B Gilbert26-Oct-05 7:02
George B Gilbert26-Oct-05 7:02 
GeneralRe: Remove Duplications Pin
stevelam26-Oct-05 8:21
stevelam26-Oct-05 8:21 
AnswerRe: Remove Duplications Pin
George B Gilbert26-Oct-05 8:30
George B Gilbert26-Oct-05 8:30 
GeneralRe: Remove Duplications Pin
stevelam26-Oct-05 8:35
stevelam26-Oct-05 8:35 
AnswerRe: Remove Duplications Pin
George B Gilbert27-Oct-05 6:15
George B Gilbert27-Oct-05 6:15 
QuestionOverriding the Built-In Menus and Commands in Microsoft Word Pin
microuser_200025-Oct-05 23:40
microuser_200025-Oct-05 23:40 
Questiondatagrid that does not display null for blank data...how it is possible Pin
ajay bharti25-Oct-05 21:05
ajay bharti25-Oct-05 21:05 
AnswerRe: datagrid that does not display null for blank data...how it is possible Pin
oakleaf7-Nov-05 6:39
oakleaf7-Nov-05 6:39 
Questioncrystal report with vb.net(run on client machine) Pin
amilapradeep25-Oct-05 18:43
amilapradeep25-Oct-05 18:43 
AnswerRe: crystal report with vb.net(run on client machine) Pin
Christian Graus25-Oct-05 18:47
protectorChristian Graus25-Oct-05 18:47 
GeneralRe: crystal report with vb.net(run on client machine) Pin
amilapradeep25-Oct-05 19:20
amilapradeep25-Oct-05 19:20 
GeneralRe: crystal report with vb.net(run on client machine) Pin
Christian Graus25-Oct-05 19:22
protectorChristian Graus25-Oct-05 19:22 

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.