简体   繁体   中英

How to display text from a query into a textbox

I have a textbox on my report and I have a query which always returns a single cell:

SELECT CustomMessage FROM OrderSheetSettings;

My aim is to display the single cell that it returns and place it into the textbox through the expression builder.

What I have/tried so far:

[qryCustomMessage]![CustomMessage]
[qryCustomMessage]![CustomMessage].Value

But this returns '#Name' or '#Error'

Any help on this would be great.

Thanks

=Dlookup("CustomMessage","OrderSheetSettings")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM