Click here to Skip to main content
15,890,947 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionproblem in date asve Pin
faravani24-Jul-09 21:53
faravani24-Jul-09 21:53 
AnswerRe: problem in date asve Pin
Mycroft Holmes24-Jul-09 23:18
professionalMycroft Holmes24-Jul-09 23:18 
QuestionMy application shows SPY and Virus Pin
Anubhava Dimri24-Jul-09 19:36
Anubhava Dimri24-Jul-09 19:36 
AnswerRe: My application shows SPY and Virus Pin
Christian Graus25-Jul-09 12:54
protectorChristian Graus25-Jul-09 12:54 
GeneralRe: My application shows SPY and Virus Pin
Anubhava Dimri26-Jul-09 18:12
Anubhava Dimri26-Jul-09 18:12 
QuestionVB6 and XP Taskbar Pin
starchaser0924-Jul-09 8:39
starchaser0924-Jul-09 8:39 
AnswerRe: VB6 and XP Taskbar Pin
Henry Minute24-Jul-09 9:48
Henry Minute24-Jul-09 9:48 
Questionsearch a record Pin
waner michaud24-Jul-09 6:52
waner michaud24-Jul-09 6:52 
How can i search a record from a table.
If found, display the record.
if not found display a message

I have done the following:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Search.Click
Try
Me.RegistrationTableAdapter.FillByRegistration_(Me.RegisComplaintDataSet.Registration, Registration.Text)

If String.IsNullOrEmpty(Me.Registration.Text) Then
MsgBox("L'enregistrement n'existe pas" & UCase(Me.Registration.Text))
Me.Registration.Text = ""
Else
Me.Registration.Text = Me.Registration.Text
End If
Catch ex As Exception


End Try
End Sub

I am getting the result when it is found but no message when it is not

Thanks
AnswerRe: search a record Pin
Ian Shlasko24-Jul-09 6:57
Ian Shlasko24-Jul-09 6:57 
GeneralRe: search a record Pin
waner michaud24-Jul-09 8:40
waner michaud24-Jul-09 8:40 
GeneralRe: search a record Pin
Ian Shlasko24-Jul-09 9:04
Ian Shlasko24-Jul-09 9:04 
GeneralRe: search a record Pin
waner michaud7-Aug-09 10:02
waner michaud7-Aug-09 10:02 
AnswerRe: search a record Pin
DJ Matthews24-Jul-09 7:10
DJ Matthews24-Jul-09 7:10 
Questioncalculating sum in a view Pin
Ebube24-Jul-09 3:18
Ebube24-Jul-09 3:18 
AnswerRe: calculating sum in a view Pin
Mike Ellison24-Jul-09 4:04
Mike Ellison24-Jul-09 4:04 
Questionhow to select datagrid row using keyboard ??? Pin
JC.KaNNaN24-Jul-09 3:06
JC.KaNNaN24-Jul-09 3:06 
AnswerRe: how to select datagrid row using keyboard ??? Pin
Muhammad Mazhar24-Jul-09 3:25
Muhammad Mazhar24-Jul-09 3:25 
GeneralRe: how to select datagrid row using keyboard ??? Pin
JC.KaNNaN24-Jul-09 19:01
JC.KaNNaN24-Jul-09 19:01 
Questioncode change for right to left language Pin
MA Awan24-Jul-09 3:04
MA Awan24-Jul-09 3:04 
AnswerRe: code change for right to left language Pin
Muhammad Mazhar24-Jul-09 3:30
Muhammad Mazhar24-Jul-09 3:30 
GeneralRe: code change for right to left language Pin
MA Awan26-Jul-09 6:34
MA Awan26-Jul-09 6:34 
QuestionExcel - save without data connection and macros Pin
DaveyM6924-Jul-09 2:21
professionalDaveyM6924-Jul-09 2:21 
AnswerRe: Excel - save without data connection and macros Pin
EliottA24-Jul-09 2:51
EliottA24-Jul-09 2:51 
GeneralRe: Excel - save without data connection and macros Pin
DaveyM6924-Jul-09 3:01
professionalDaveyM6924-Jul-09 3:01 
GeneralRe: Excel - save without data connection and macros Pin
Mycroft Holmes24-Jul-09 23:27
professionalMycroft Holmes24-Jul-09 23:27 

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.