defaultvalue in textbox - MsAccess

J

Jan Vacek

...sorry for my bad english...
I have variable StSpecifikace AS String -
Debug.print this variable is OK. For example "This is a long text to 255
charakters"
I can take this variable as defaultvalue in textbox
like this - me.textbox.defaultvariable = "StSpecifikace"
But this is not good syntax....
How can I do it?
Thanks
Vacan
 
J

Jan Vacek

Thank you,
I wrote it this:
me.textbox.defaultvalue = " ' " & StSpecifikace & " ' "
Is it possible?

JVacek
 
D

Douglas J. Steele

I believe you need to have double-quotes in this situation, that single
quotes won't work. Chr$(34) is ", so you'll end up with a double quote on
either side of the value of the variable.

Try it, though, and see whether it'll work.
 
J

Jan Vacek

Thank you..
JVacek

Douglas J. Steele said:
I believe you need to have double-quotes in this situation, that single
quotes won't work. Chr$(34) is ", so you'll end up with a double quote on
either side of the value of the variable.

Try it, though, and see whether it'll work.
 

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