Hi there
The coding for my project looks as follows.
Private MemberDetail1AL As New ArrayList
Private M01Member001Info As New MPF.PAS.Contributions.M01Member001Info
Private MemberConsInfoController As New PAS.Contributions.MemberConsInfoController
If txtRunNumber.Text <> "" Then
MemberDetail1AL = MemberConsInfoController.GetMemberInfo (txtRunNumber.Text)
dtgTest.DataSource = MemberDetail1AL
M01Member001Info = MemberDetail1AL.Item(0)
End If
'THESE ARE THE BINDINGS FOR Member Detail(M01/002/001)
txtIndustryNumber3.DataBindings.Add("Text",M01Member001Info, "IndustryReference")
txtIdentityNumber3.DataBindings.Add
("Text", M01Member001Info, "IDNumber")
txtDateOfBirth3.DataBindings.Add
("Text", M01Member001Info, "BirthDate")
txtSurname.DataBindings.Add
("Text", M01Member001Info, "Surname")
txtInitials.DataBindings.Add
("Text", M01Member001Info, "Initials")
txtFirstName1.DataBindings.Add
("Text", M01Member001Info, "FirstName1")
txtFirstName2.DataBindings.Add
("Text", M01Member001Info, "FirstName2")
txtFirstName3.DataBindings.Add
("Text", M01Member001Info, "FirstName3")
txtTitle.DataBindings.Add
("Text", M01Member001Info, "Title")
txtLanguage.DataBindings.Add
("Text", M01Member001Info, "Language")
txtGender.DataBindings.Add
("Text", M01Member001Info, "Gender")
txtMaritalStatus.DataBindings.Add
("Text", M01Member001Info, "MaritalStatus")
txtPassportNumber.DataBindings.Add
("Text", M01Member001Info, "PassportReference")
txtPopulationGroup.DataBindings.Add
("Text", M01Member001Info, "PopulationGroup")
I also have a txtRunNumber textbox and a Search button , now I would like it if i could enter my run number in this text box and when i click my search button it will return all the relevant values in the text boxes i have binded.Any suggestions as the if statement i have written doesnt really do the trick.Also how can i stop it form bombing out if lets say i enter a run number that does not exist.
Kind Regards.