Results 1 to 2 of 2
  1. #1
    Star Lounger
    Join Date
    Sep 2002
    Location
    Indianapolis, Indiana, USA
    Posts
    80
    Thanks
    1
    Thanked 0 Times in 0 Posts

    ComboBox data use (97 (sr2))

    I have a listbox on a data entry form whose current value I want to use to pull data when the form opens. When I was testing it, I was getting a null when the form was opened. If I click on the listbox then everything works fine. Is it necessary to set the focus to the listbox when the form opens in order to be able to work with the current value in the listbox

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: ComboBox data use (97 (sr2))

    Say that the list box or combo box (the subject and body of your post are conflicting in this respect) is named MyCtl. Set the Default Value property of this control to [MyCtl].[ItemData](0). This is the first value in the list.

Posting Permissions

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