Const strQName As String

L

learning_codes

Hi,

I don't know if it will work or not. I need your comment or provide
me the right way of doing this.


It works when I use:

Const strQName As String = "Temp Data"

****************************************************************

I want to know if this make sense to you. I tried but it does not
give me result. I would be appreciated if you can help me and tell me
what did I do wrong.


strName = Me.Name.value 'from the form screen
Const strQName As String = strName

Thanks
 
D

Douglas J. Steele

A constant is just that: a known value. You cannot programmatically assign a
value to a constant.

If you need to be able to set its value programmatically, you have no choice
but to use a variable, not a constant.
 
Top