defaultvalue in textbox - MsAccess

  • Thread starter Thread starter Jan Vacek
  • Start date Start date
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
 
Thank you,
I wrote it this:
me.textbox.defaultvalue = " ' " & StSpecifikace & " ' "
Is it possible?

JVacek
 
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.
 
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.
 
Back
Top