Const strQName As String

  • Thread starter Thread starter learning_codes
  • Start date Start date
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
 
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.
 

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

Back
Top