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

Visual Basic

 
QuestionConvert ASCII code points to UNICODE Pin
jimithing7713-Jul-06 4:52
jimithing7713-Jul-06 4:52 
AnswerRe: Convert ASCII code points to UNICODE Pin
Christian Graus13-Jul-06 5:16
protectorChristian Graus13-Jul-06 5:16 
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 
i don't know if this will help you but i hope it will
my suggestion is:
1. you save the use input in a variable
2. query database for that input
3. if the query result is 0 then the employee number is not exist, give warning
4. else then number is exist go to next process

I'm assuming you have a table called TabEmployees with a field called EmployeeNo and using microsoft access 2000 database file. here's the code
private function isEmpExist(byval EmpNo as integer) as boolean
  dim CN as new oledbconnection
  dim R as integer
  cn.connectionstring="provider=microsoft.jet.oledb.4.0"
  dim Cmd as oledbcommand=cn.createcommand
  with cmd
    'set commandtype as commandtext
    .commandtext="SELECT EmployeeNo FROM TabEmployees WHERE EmployeeNo = " & EmpNo.tostring.trim
  end with
  r=cmd.executenonquery
  if isnothing(r) then 
    return false
  else
    return true
  end if
  cn.close
end function

hope you find this useful, and i'm sorry if this code doesn't do as it should, but i think it will only might produce syntax error, coz i'm typing it directly here without VB. well then good luck!
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 
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 

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.