Peter Chan
asked on
Problem with the codes
Hi,
It did go to frmAddDB.Show() below
when running the project, while I've just put one ID to IteID Textbox, and I want to know why.
It did go to frmAddDB.Show() below
Private Sub TxtIteID_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles TxtIteID.LostFocus
Dim Myconn As New OleDb.OleDbConnection
Dim Objconfig As New Config
If Me.TxtIteID.Text <> "" Then
Try
If ObjLogin.ValidID(Me.TxtIteID.Text) Then
With Me.cmbUnit
.Items.Clear()
For Each Dr As DataRow In ObjLogin.LoadBrIte(TxtIteID.Text).Rows
.Items.Add(Dr(0).ToString)
Next
.SelectedIndex = 0
End With
Else
MsgBox("It is not Valid Iteid", MsgBoxStyle.OkOnly)
End If
Catch
frmAddDB.Show()
End Try
...
when running the project, while I've just put one ID to IteID Textbox, and I want to know why.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
And I can use that name to login local Sql DB fine.
ASKER
Any other help to this?
Your last post is a new question, you should open a new question next time.
I am not sure how you are using DBServer element value,
for SQL server connection strings your post should be OK.
I am not sure how you are using DBServer element value,
for SQL server connection strings your post should be OK.
ASKER
"PC326VM01\SSEXPR12" is the server name, which I use to login local Sql server DB, using management studio.
Is it fine that I put this below
Open in new window
within Config.xml file fo the project?