Click here to Skip to main content
15,893,668 members
Home / Discussions / Database
   

Database

 
GeneralRe: Need simple code Pin
gharry19-Dec-05 6:31
gharry19-Dec-05 6:31 
GeneralRe: Need simple code Pin
Luis Alonso Ramos19-Dec-05 6:44
Luis Alonso Ramos19-Dec-05 6:44 
GeneralRe: Need simple code Pin
gharry19-Dec-05 22:12
gharry19-Dec-05 22:12 
AnswerRe: Need simple code Pin
albCode19-Dec-05 4:20
albCode19-Dec-05 4:20 
GeneralRe: Need simple code Pin
gharry19-Dec-05 5:05
gharry19-Dec-05 5:05 
GeneralRe: Need simple code Pin
albCode19-Dec-05 5:12
albCode19-Dec-05 5:12 
GeneralRe: Need simple code Pin
Luis Alonso Ramos19-Dec-05 6:39
Luis Alonso Ramos19-Dec-05 6:39 
QuestionWhy is code not working Pin
gharry17-Dec-05 10:11
gharry17-Dec-05 10:11 
I try this code to check if a name is on a table by cheking the name if this one is entered in a asp:TextBox. This is the code -->

Protected Sub Horse_Name_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs)
' Check if Horse_Name is in FEI file
Dim LUConn As SqlConnection = New SqlConnection("server=localhost;uid=sa;pwd=;database=EventMngt")
'Dim LUString As String = "SELECT * FROM C_Registered_horses WHERE Horse_Name = " & Horse_Name.Text
Dim LUComm As SqlDataAdapter

Try
LUConn.Open()
LUComm = New SqlDataAdapter("SELECT * FROM C_Registered_horses WHERE Horse_Name = " & Horse_Name.Text, LUConn)

Catch Err As Exception
MessageLabel.Text = "Horsename not found. Try again or use Passport number." & Err.Message

Finally
LUConn.Close()
MessageLabel.Text = LUString
End Try
End Sub

The aboce code is executed without no error but the faulty name is not discovered, the catch statement is not catching a error. I cant see what is wrong.

AnswerRe: Why is code not working Pin
Andrew Bleakley17-Dec-05 12:53
Andrew Bleakley17-Dec-05 12:53 
AnswerRe: Why is code not working Pin
Colin Angus Mackay17-Dec-05 14:26
Colin Angus Mackay17-Dec-05 14:26 
QuestionNetwork card Mac address Pin
GregRH16-Dec-05 12:26
GregRH16-Dec-05 12:26 
AnswerRe: Network card Mac address Pin
Colin Angus Mackay16-Dec-05 12:40
Colin Angus Mackay16-Dec-05 12:40 
Questionuse a string by reference? Pin
BlackDice16-Dec-05 4:58
BlackDice16-Dec-05 4:58 
AnswerRe: use a string by reference? Pin
BlackDice16-Dec-05 5:15
BlackDice16-Dec-05 5:15 
AnswerRe: use a string by reference? Pin
Shawn_H7-Feb-06 20:40
Shawn_H7-Feb-06 20:40 
QuestionData access through a windows service Pin
User 231751415-Dec-05 21:32
User 231751415-Dec-05 21:32 
AnswerRe: Data access through a windows service Pin
abhinish17-Dec-05 0:37
abhinish17-Dec-05 0:37 
QuestionError with Jet 4.0 Pin
vilmer15-Dec-05 5:36
vilmer15-Dec-05 5:36 
AnswerRe: Error with Jet 4.0 Pin
albCode15-Dec-05 5:45
albCode15-Dec-05 5:45 
GeneralRe: Error with Jet 4.0 Pin
vilmer15-Dec-05 22:05
vilmer15-Dec-05 22:05 
GeneralRe: Error with Jet 4.0 Pin
Rob Graham16-Dec-05 13:26
Rob Graham16-Dec-05 13:26 
GeneralRe: Error with Jet 4.0 Pin
vilmer17-Dec-05 1:19
vilmer17-Dec-05 1:19 
QuestionDatabase migration tool Pin
AnonymousTwo15-Dec-05 4:40
AnonymousTwo15-Dec-05 4:40 
AnswerRe: Database migration tool Pin
-Dr_X-19-Dec-05 11:58
-Dr_X-19-Dec-05 11:58 
QuestionColumnOrder Pin
silverear15-Dec-05 2:36
silverear15-Dec-05 2:36 

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.