Forum Discussion
Re: Dlookup
George, not sure why its not allowing me to upload the file.
I uploaded it to google drive.
Maybe you could view it by this means.
https://drive.google.com/file/d/1eG3_Z4xOzLjC9T9wM60mVPVM_t5OMnw3/view?usp=sharing
7 Replies
- arnel_gpSteel Contributor
here is your db to check and test. see i made another query (not really necessary).
also cboCoName should be Bound to ID2.
- Tony2021Steel Contributor
Hello Arnel,
thank you for the response.
I have tested and I have a follow up if you would be so kind.
Once I click in the Co Name on the form and then cboCurency to choose the currency it doesnt "stick" when I go to the next record and I think its because of the requery. Do you see what I mean?
- arnel_gpSteel Contributor
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).