• Field showing blank on form reopen

    Author
    Topic
    #472282

    Hi,

    I have a two combo boxes on a form. When the user chooses an option on the first combo box, I run some SQL code through the after update event to fill in options on the 2nd combo box. This works fine and the user is able to choose the option they wish on the 2nd combo box. If I navigate to a new record and back to the original record, both combo boxes have values in them showing what the user chose.

    If I close the form however and then reopen, the value on the 2nd combo box comes up blank, even though there is a value in the underlying field on the table.

    Does anyone know why this is happening?

    Cheers,
    Jason

    Viewing 1 reply thread
    Author
    Replies
    • #1249315

      The code you have in the After Update event for the first combo box needs to be repeated in the On Current event for the form. Without that the second combo does not have the correct options available when looking at existing data.

    • #1249694

      Thankyou so much John, that works perfectly. Much appreciated!

    Viewing 1 reply thread
    Reply To: Field showing blank on form reopen

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: