Using expressions in Msgbox

H

hermanko

Hi,

According to Access help, it is possible to display expressions in a
message box, as opposed to just text. I am not sure how to do this
properly, but I want a msgbox to display some text as well as a text
string that is referenced off another form.

The expression is:
=[Forms]![Step 1 Msg]![txt_step1msg]

When I insert only this into the message argument of the Msgbox macro
action, the message box displays the value correctly.

However, when i try to also add some typed text around it to make a
coherent sentence, the above expression just becomes a string and no
longer displays its referenced value.

How do i get around this?

Thanks!
Herman
 
S

Steve Schapel

Herman,

You forgot to mention what you tried. Doesn't this work?...

="Something " & [Forms]![Step 1 Msg]![txt_step1msg] & " something else."
 
H

hermanko

Yes, that does work. And i got it to work shortly after my post. Thanks
for the confirmation tho!
Herman
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top