Click here to Skip to main content
16,005,339 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Convert ASCII code points to UNICODE Pin
Dave Kreskowiak13-Jul-06 5:16
mveDave Kreskowiak13-Jul-06 5:16 
AnswerRe: Convert ASCII code points to UNICODE Pin
Kschuler14-Jul-06 9:07
Kschuler14-Jul-06 9:07 
GeneralRe: Convert ASCII code points to UNICODE Pin
Christian Graus13-Jul-06 5:17
protectorChristian Graus13-Jul-06 5:17 
GeneralRe: Convert ASCII code points to UNICODE Pin
Dave Kreskowiak13-Jul-06 6:28
mveDave Kreskowiak13-Jul-06 6:28 
QuestionValidation of Textbox Pin
Larry White13-Jul-06 4:33
Larry White13-Jul-06 4:33 
AnswerRe: Validation of Textbox Pin
Agus Budianto13-Jul-06 18:10
Agus Budianto13-Jul-06 18:10 
GeneralRe: Validation of Textbox Pin
Agus Budianto14-Jul-06 5:14
Agus Budianto14-Jul-06 5:14 
GeneralRe: Validation of Textbox Pin
Larry White14-Jul-06 12:22
Larry White14-Jul-06 12:22 
Thank you very much for responding. I plugged in the code and modified to match my database settings and have a syntax error. I should be able to find the error with a little troubleshooting. The error appears to be in the .CommandText line. Here is my modified code:

Private Function isEmpExist(ByVal EmpNo As Integer) As Boolean
Dim CN As New SqlConnection
Dim R As Integer
CN = (New SqlConnection("Integrated Security=False; User id= testuser; password= xxx; Server=xxx; Initial Catalog=Galley"))
Dim Cmd As SqlCommand = CN.CreateCommand

With Cmd
'set commandtype as commandtext
.CommandText = "SELECT emplid FROM users WHERE emplid = " & editEMPLID.ToString.Trim
End With
CN.Open()
R = Cmd.ExecuteScalar
If IsNothing(R) Then
Return False
Else
Return True
End If
CN.Close()
End Function


Again, I very much appreciate the assist. I've been banging my head against the wall for a few days on this one. This should be a simple comparison and validation.Unsure | :~

LWhite
QuestionBubble sort Pin
NickiG13-Jul-06 4:22
NickiG13-Jul-06 4:22 
AnswerRe: Bubble sort Pin
Christian Graus13-Jul-06 4:25
protectorChristian Graus13-Jul-06 4:25 
AnswerRe: Bubble sort Pin
Eric Dahlvang13-Jul-06 6:21
Eric Dahlvang13-Jul-06 6:21 
QuestionHow to convert amount into words in crystal report Pin
swapnilbhavsar13-Jul-06 3:54
swapnilbhavsar13-Jul-06 3:54 
AnswerRe: How to convert amount into words in crystal report Pin
Gulfraz Khan13-Jul-06 7:02
Gulfraz Khan13-Jul-06 7:02 
QuestionSynchronizingObject problem Pin
coolestCoder13-Jul-06 3:40
coolestCoder13-Jul-06 3:40 
AnswerRe: SynchronizingObject problem Pin
Dave Kreskowiak13-Jul-06 5:11
mveDave Kreskowiak13-Jul-06 5:11 
QuestionApp does not get focus on Win 2000. Pin
seamie13-Jul-06 2:46
seamie13-Jul-06 2:46 
AnswerRe: App does not get focus on Win 2000. Pin
Dave Kreskowiak13-Jul-06 4:51
mveDave Kreskowiak13-Jul-06 4:51 
Questiondatabase programming Pin
ramin_ok13-Jul-06 0:38
ramin_ok13-Jul-06 0:38 
AnswerRe: database programming Pin
Christian Graus13-Jul-06 4:26
protectorChristian Graus13-Jul-06 4:26 
QuestionHow I do Video Streaming in VB.NET Pin
sam_pune12-Jul-06 23:42
sam_pune12-Jul-06 23:42 
AnswerRe: How I do Video Streaming in VB.NET Pin
Dave Kreskowiak13-Jul-06 4:40
mveDave Kreskowiak13-Jul-06 4:40 
Questionusing VB 6.0 how to reset the timer while excuting the program Pin
Simple programmer12-Jul-06 23:14
Simple programmer12-Jul-06 23:14 
AnswerRe: using VB 6.0 how to reset the timer while excuting the program Pin
Dave Kreskowiak13-Jul-06 4:31
mveDave Kreskowiak13-Jul-06 4:31 
GeneralRe: using VB 6.0 how to reset the timer while excuting the program Pin
Simple programmer13-Jul-06 15:44
Simple programmer13-Jul-06 15:44 
GeneralRe: using VB 6.0 how to reset the timer while excuting the program Pin
Dave Kreskowiak14-Jul-06 0:41
mveDave Kreskowiak14-Jul-06 0:41 

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.