(0x800A0415) Expected literal constant

U

unixnewsboy

For the life of me I can't see what is going wrong here... Why am i
getting the above error

<%

'DataBase
const DSN_NAME = "ORADBA"
const DSN_SERV = "localhost"
const DSN_UID = "ORADBA"
const DSN_PWD = "ORADBA"
const MM_Prod_DSN = "dsn=" & DSN_NAME & ";server=" & DSN_SERV & ";uid="
& DSN_UID & ";pwd=" & DSN_PWD & ";"


%>


Please note, MM_Prod_DSN is defined on a single line.
 
M

McKirahan

For the life of me I can't see what is going wrong here... Why am i
getting the above error

<%

'DataBase
const DSN_NAME = "ORADBA"
const DSN_SERV = "localhost"
const DSN_UID = "ORADBA"
const DSN_PWD = "ORADBA"
const MM_Prod_DSN = "dsn=" & DSN_NAME & ";server=" & DSN_SERV & ";uid="
& DSN_UID & ";pwd=" & DSN_PWD & ";"


%>


Please note, MM_Prod_DSN is defined on a single line.

You cannot construct a constant! Try this instead:

Dim MM_Prod_DSN
MM_Prod_DSN = "dsn=" & DSN_NAME & ";server=" _
& DSN_SERV & ";uid=" & DSN_UID & ";pwd=" & DSN_PWD & ";"
 
U

unixnewsboy

ahh... I thought it was ok as long as i didn't try to change it
afterwords.

thank you
 

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

Members online

Forum statistics

Threads
473,755
Messages
2,569,538
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top