Click here to Skip to main content
15,885,821 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: get all directories in Computer Pin
turtle101015-Feb-07 6:53
turtle101015-Feb-07 6:53 
GeneralRe: get all directories in Computer Pin
Dave Kreskowiak15-Feb-07 13:08
mveDave Kreskowiak15-Feb-07 13:08 
GeneralRe: get all directories in Computer Pin
Colin Angus Mackay15-Feb-07 13:43
Colin Angus Mackay15-Feb-07 13:43 
AnswerRe: get all directories in Computer Pin
ednrgc15-Feb-07 4:51
ednrgc15-Feb-07 4:51 
Questioncomponents file in vb.net Pin
amaneet15-Feb-07 4:12
amaneet15-Feb-07 4:12 
Questionserver error Pin
Sarfaraj Ahmed15-Feb-07 3:37
Sarfaraj Ahmed15-Feb-07 3:37 
AnswerRe: server error Pin
Dave Kreskowiak15-Feb-07 13:03
mveDave Kreskowiak15-Feb-07 13:03 
Questionhai Pin
Ishwarya M15-Feb-07 2:31
Ishwarya M15-Feb-07 2:31 
hai
i'm doing a project on travel & tourism in vb.net...i've written a code for user login...but it shows some error "ret = com.ExecuteScalar()" in this line...pls can any1 help me out...

Dim com As New OleDb.OleDbCommand
Dim con As OleDb.OleDbConnection
Dim ret As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
con = New OleDb.OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=E:\Ishu\Ishwarya\mini proj\travels.mdb")
con.Open()
com = New OleDbCommand("select count(*) from users where User Name='" + TextBox1.Text + "' and Password='" + TextBox2.Text + "'", con)
ret = com.ExecuteScalar()
If (ret > 0) Then
Dim frmobj As frmbc
frmobj.Show()
Else
MsgBox("Invalid Username")
End If
End Sub
AnswerRe: hai Pin
Marcus J. Smith15-Feb-07 3:02
professionalMarcus J. Smith15-Feb-07 3:02 
GeneralRe: hai Pin
Ishwarya M15-Feb-07 4:12
Ishwarya M15-Feb-07 4:12 
AnswerRe: hai Pin
Colin Angus Mackay15-Feb-07 4:19
Colin Angus Mackay15-Feb-07 4:19 
GeneralRe: hai Pin
Marcus J. Smith15-Feb-07 4:25
professionalMarcus J. Smith15-Feb-07 4:25 
GeneralRe: hai Pin
Colin Angus Mackay15-Feb-07 4:31
Colin Angus Mackay15-Feb-07 4:31 
AnswerRe: hai Pin
Marcus J. Smith15-Feb-07 4:46
professionalMarcus J. Smith15-Feb-07 4:46 
QuestionString length problem Pin
penguin500015-Feb-07 2:29
penguin500015-Feb-07 2:29 
AnswerRe: String length problem Pin
Tamimi - Code15-Feb-07 3:49
Tamimi - Code15-Feb-07 3:49 
GeneralRe: String length problem Pin
penguin500015-Feb-07 23:25
penguin500015-Feb-07 23:25 
Questionsecond form Pin
KOKEMO15-Feb-07 1:47
KOKEMO15-Feb-07 1:47 
AnswerRe: second form Pin
Marcus J. Smith15-Feb-07 2:13
professionalMarcus J. Smith15-Feb-07 2:13 
AnswerRe: second form Pin
jim_taylor16-Feb-07 10:21
jim_taylor16-Feb-07 10:21 
QuestionNeed Help while deployment ...Anyone please help me. Pin
Member 371873315-Feb-07 0:32
Member 371873315-Feb-07 0:32 
AnswerRe: Need Help while deployment ...Anyone please help me. Pin
nlindley715-Feb-07 6:04
nlindley715-Feb-07 6:04 
QuestionValidating characters Pin
Mark0614-Feb-07 23:50
Mark0614-Feb-07 23:50 
AnswerRe: Validating characters Pin
KeithF15-Feb-07 0:09
KeithF15-Feb-07 0:09 
QuestionDynamic compilation Pin
JCSillero14-Feb-07 21:53
professionalJCSillero14-Feb-07 21:53 

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.