469,336 Members | 5,570 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,336 developers. It's quick & easy.

(0x800A0415) Expected literal constant

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.

Jan 14 '06 #1
2 6127
<un*********@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
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 & ";"
Jan 14 '06 #2
ahh... I thought it was ok as long as i didn't try to change it
afterwords.

thank you

Jan 14 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Lecture Snoddddgrass | last post: by
7 posts views Thread by al | last post: by
4 posts views Thread by songkv | last post: by
3 posts views Thread by Stephen Mayes | last post: by
3 posts views Thread by lovecreatesbeauty | last post: by
20 posts views Thread by karthikbalaguru | last post: by
18 posts views Thread by sinbad | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.