Following is the select statement that I use to retrieve the data, the line
with the *** is the line thats gets the photo.
strSQL = "SELECT [pet-id], [owner-id], [pet-name], [sp-nu], [pet-type],
[pet-breed], [pet-sex], [pet-weight], [pet-size], [pet-color],
[pet-age-years], [pet-age-months], rate, [rate-type], compatable,
[medical-condition], [pet-location], [animal-tag-id], [animal-implanted-id],
[pet-photo] FROM [animal-info] WHERE [pet-id] = " + PrepareStr(txtOid.Text);
cmSQL = new SqlCommand(strSQL, cnKennel);
if (cnKennel.State != ConnectionState.Open)
cnKennel.Open();
drSQL = cmSQL.ExecuteReader();
if(drSQL.Read())
{
txtAnimalID.Text = drSQL["pet-id"].ToString();
txtOid.Text = drSQL["owner-id"].ToString();
txtAnimalName.Text = drSQL["pet-name"].ToString();
cbSpNu.Text = drSQL["sp-nu"].ToString();
cbAnimalType.Text = drSQL["pet-type"].ToString();
cbAnimalBreed.Text = drSQL["pet-breed"].ToString();
cbAnimalSex.Text = drSQL["pet-sex"].ToString();
txtAnimalColor.Text = drSQL["pet-color"].ToString();
txtAnimalWeight.Text = drSQL["pet-weight"].ToString();
cbAnimalSize.Text = drSQL["pet-size"].ToString();
txtAnimalAgeYears.Text = drSQL["pet-age-years"].ToString();
txtAnimalAgeMonths.Text = drSQL["pet-age-months"].ToString();
cbRate.Text = drSQL["rate"].ToString();
cbRateType.Text = drSQL["rate-type"].ToString();
cbCompatable.Text = drSQL["compatable"].ToString();
txtAnimalMedicalCondition.Text = drSQL["medical-condition"].ToString();
txtAnimalLocation.Text = drSQL["pet-location"].ToString();
txtAnimalTag.Text = drSQL["animal-tag-id"].ToString();
txtAnimalImpId.Text = drSQL["animal-implanted-id"].ToString();
*** pcAnimalPhoto.Text = drSQL["pet-photo"].ToString(); ***
}