New Message on dotNET User Group Hyd

DS

Reply
  Reply to Sender   Recommend Message 1 in Discussion
From: rameshpgs


Try
daR = New SqlDataAdapter("select distinct APPLICATION_NO,REGISTRATION_DATE,ACADEMIC_YEAR_CODE,FIRST_NAME,MIDDLE_NAME,SUR_NAME,MOTHER_NAME,FATHER_NAME,CLASS_ID,MEDIUM_ID,DOB,BIRTH_PLACE,SEX,NATIONALITY_CODE,RELIGION_CODE,COMMUNITY,MOTHERTONGUE,VACCINATED,MOLE1,MOLE2,FATHER_QUALIFICATION,FATHER_OCCUPATION,FATHER_OFFICE_ADDRESS,FATHER_OFFICE_PHONE,MOTHER_QUALIFICATION,MOTHER_OCCUPATION,PARENTS_ANNUAL_INCOME,PRESENT_ADDRESS,PRESENT_CITY,PRESENT_STATE,PRESENT_PHONE,PRESENT_PINCODE,PERMANENT_ADDRESS,PERMANENT_CITY,PERMANENT_STATE,PERMANENT_PHONE,PERMANENT_PINCODE,RELATIVE1_NAME,RELATIVE1_CLASS,RELATIVE2_NAME,RELATIVE2_CLASS,BLOOD_GROUP,EYE_SIGHT,HEIGHT,WEIGHT,ADMITTED from Registration_Master", con)
cb = New SqlCommandBuilder(daR)
daR.Fill(ds, "Registration_Master")
' Dim RegTable As DataTable = ds.Tables("Registration_master")
' Dim RegUC As UniqueConstraint = New UniqueConstraint(New DataColumn() {RegTable.Columns("Application_no")})
' ds.Tables("Registration_master").Constraints.Add(RegUC)

Try
dr = ds.Tables("Registration_master").Rows.Find(Trim(IntApplicationNo.Text))
'I get error here as the columns don't have unique values
Catch ee As SqlException
MsgBox(ee.Message)
End Try
If dr Is Nothing Then
dtpRegistrationDate.Value = dr.Item(1)
IntAcadYearCode.Text = dr.Item(2)
AlpFirstName.Text = dr.Item(3)
catch ee as exeception
erroris catched here as the columns don't have unique values





This is the code and Database fileds are given in Query
i have only one record in database and while

'I get error here as the columns don't have unique values

View other groups in this category.

Click here!
Also on MSN:
Start Chatting | Listen to Music | House & Home | Try Online Dating | Daily Horoscopes

To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.

Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.

If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.

Reply via email to