Click here to Skip to main content
16,004,927 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Print to File Pin
furjaw3-May-06 19:50
furjaw3-May-06 19:50 
Questionsplit string using vb6 Pin
ihsan_zie1-May-06 17:09
ihsan_zie1-May-06 17:09 
AnswerRe: split string using vb6 Pin
atregent1-May-06 17:51
atregent1-May-06 17:51 
Question'System.Data.DataRowView' does not contain a property with the name LastDate. Pin
kenn_rosie1-May-06 16:48
kenn_rosie1-May-06 16:48 
Questiondeclare and error Pin
ezajan1-May-06 15:11
ezajan1-May-06 15:11 
AnswerRe: declare and error Pin
Christian Graus1-May-06 16:02
protectorChristian Graus1-May-06 16:02 
GeneralRe: declare and error Pin
ezajan1-May-06 16:16
ezajan1-May-06 16:16 
GeneralRe: declare and error Pin
Christian Graus1-May-06 17:08
protectorChristian Graus1-May-06 17:08 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdataoledboledbdataadapterclassfilltopic1.asp[^]

OleDbDataAdapter1.Fill(DsAdminLogin, "ADMIN1")

Your second parameter is a recordset, you're passing a string. Why ?

loginADMINID = txtUser.Text
loginADMINNAME = DsAdminLogin.Tables(0).Rows(0).Item("ADMINNAME")
loginADMINSTAFFNO = DsAdminLogin.Tables(0).Rows(0).Item("ADMINSTAFFNO")
loginPwd = txtPwd.Text

What's the use of all this ? You don't use these values anywhere, they will just be lost.

Me.Hide()
temp.Show()

If you're going to hide your main form, you'd do better to define your other form and your main form UI as user controls, and switch between them on the one form. As it stands, you have no mechanism in place for the form you're showing to close and your main form to reappear.



Christian Graus - Microsoft MVP - C++
Question.NET Security Question Pin
mlauahi1-May-06 12:51
mlauahi1-May-06 12:51 
QuestionHow can I programatically add a record in an Excel sheet? Pin
DoubleD8221-May-06 8:24
DoubleD8221-May-06 8:24 
QuestionDataGridView & ComboboxCell Pin
MasySh1-May-06 6:59
MasySh1-May-06 6:59 
QuestionSudoku Pin
Derrick Campbell1-May-06 5:01
Derrick Campbell1-May-06 5:01 
AnswerRe: Sudoku Pin
Robert Rohde1-May-06 5:17
Robert Rohde1-May-06 5:17 
AnswerRe: Sudoku Pin
Dave Kreskowiak1-May-06 9:43
mveDave Kreskowiak1-May-06 9:43 
QuestionCreating Remote Object from a Remote Server Pin
Leelanga1-May-06 3:48
Leelanga1-May-06 3:48 
AnswerRe: Creating Remote Object from a Remote Server Pin
Dave Kreskowiak1-May-06 9:54
mveDave Kreskowiak1-May-06 9:54 
GeneralRe: Creating Remote Object from a Remote Server Pin
Leelanga3-May-06 22:18
Leelanga3-May-06 22:18 
GeneralRe: Creating Remote Object from a Remote Server Pin
Dave Kreskowiak4-May-06 1:55
mveDave Kreskowiak4-May-06 1:55 
Questionprinting an arranging variables on a A4 sheet Pin
scalpa981-May-06 1:47
scalpa981-May-06 1:47 
Questionsocket programing Pin
ysfjbr1-May-06 0:50
ysfjbr1-May-06 0:50 
QuestionCrystal Report Printing Pin
microuser_20001-May-06 0:11
microuser_20001-May-06 0:11 
QuestionHow to read word (.Doc) file from VB6 Pin
Chandana Subasinghe30-Apr-06 23:23
Chandana Subasinghe30-Apr-06 23:23 
AnswerRe: How to read word (.Doc) file from VB6 Pin
barnamehnevis_vbnet30-Apr-06 23:49
barnamehnevis_vbnet30-Apr-06 23:49 
GeneralRe: How to read word (.Doc) file from VB6 Pin
Chandana Subasinghe30-Apr-06 23:50
Chandana Subasinghe30-Apr-06 23:50 
Questioncode for vb6 and vb.net Pin
ihsan_zie30-Apr-06 22:57
ihsan_zie30-Apr-06 22:57 

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.