Forum Discussion

Tony2021's avatar
Tony2021
Steel Contributor
Nov 27, 2021
Solved

Dlookup

Hello,   I have a form with an unbound field cboCurrency  I want this field cboCurrency to list the available currencies per COID on tblBankAccounts.  The field in tblBankAccounts is [currency]. ...
  • arnel_gp's avatar
    arnel_gp
    Nov 29, 2021

    Tony2021 

     

    here is a hack since your form is Continuous, there is actually 1 currency combobox.

    so changing the rowsource of the combo affects the entire form, making some

    of the "values" of combo disappear.

     

    i change the query qryPmtProposal to add currency from currency table (the new calculated field is CY).

    next i added a textbox (txtCurrencyName, see it in property window) and add CY as it controlsource. in the property i also disallow Tabbing to this control. then i right-click and Position->bring to front. While the currency combo the Position is sent to back. I align both controls correct (reducing the width of the textbox).

    next i  remove the Border of txtCurrencyName and add code on it's GotFocus to move the focus to the combobox.

    next i Overlay (the txtbox on top) the txtCurrencyName to the Currency combobox.

    it is now correctly displaying (hopefully).

Resources