i am trying to perform a task in my report a bit complicated for me,when we compile the report and send it to the client many times the clients request to change some data so we should resend a new report but the trouble is the report contain a lot of data stored from the database and to remind it is hard so i saved the data of each report in the database via variables to remind each report done and the data used to do it;
now when the client request to change some data in the report we should open it and change the data but here i got stuck .
When i open the data of a report compiled in past i know how retrieve the data saved in database with Variables but with a single Value but when i need to populate a CheckListBoxControl with a Variables that contain more value i get stuck ;
I have a ChecklistBox populate in this way :
Code: Select all
if (ComboBoxControl1.SelectedIndex >= 0)
{
string index = Country_TBL.GetData("CountryCode", ComboBoxControl1.SelectedIndex).ToString();
CheckedListBoxControl1.Control.Items.Clear();
City_TBL.First();
while (!City_TBL.IsEof)
{
if (City_TBL.CountryCode == index)
{
CheckedListBoxControl1.Control.Items.Add(City_TBL.CityCode);
}
City_TBL.Next();
}
}
now i wish check the items of the CheckedListBoxControl1 with a variable saved in the database that contain CityCode but i don't know the right way to do that .
It is the code of the variable saved in the database:
Code: Select all
where CityCode in ('NHA','PHT','SGN') // CityCode is a field of a City_TBL
Do you have any help to perform this task?
If you need additional info let me know that

Thanks so much for your attention
Cheers
EDIT : If my trouble was not clear let me know i will try to explain it in better way or if my way to do is wrong ,can you advice me a right way ? Thanks so much