Results 1 to 2 of 2

Thread: Check Whether Combo Is Populated With An Array

  1. #1

    Thread Starter
    Addicted Member skea's Avatar
    Join Date
    Mar 2006
    Posts
    187

    Check Whether Combo Is Populated With An Array

    This is needed when i want to edit data(Edit Mode) of a form that has combos which are populated with an array in the (Add Mode)
    My problem is, how can i track whether my combo is populated with an array or not ? so that if not, i can repopulate it with the array according to the text displayed in the Combo.

    To explain further:-
    I have a form with combos cbDistrict,cbCounty. (In Add Mode) When i choose a district from cbDistrict, it populates cbCounty with Counties in that particular district.On Saving,DisplayItems(District and County) are saved to that record.
    Then i have a datagrid that has records, so when i click on one record to Edit It. This calls up the form(Edit Mode) and populates it with the record. On the form the comboboxes are populated with the displayitems or rather text of the record since,the record fields are populated with Displayitems when saving.

    Any Idea of how can i solve this?
    Last edited by skea; Apr 28th, 2006 at 03:26 AM.

  2. #2
    Addicted Member
    Join Date
    Mar 2006
    Location
    Netherlands
    Posts
    198

    Re: Check Whether Combo Is Populated With An Array

    ComboBox.Items.count > 0 ??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width