PDA

View Full Version : msgbox


Jenise
06-19-2003, 10:32 AM
Hello,

Does anyone know why I would be getting a Permission Denied error message when trying to use a message box. I'm just using the following statement

MsgBox "Please double check record entered",vbOKOnly,"Null Record"


Thanks,
Jenise

Kodo
06-19-2003, 11:24 AM
if you get that error it means that you're executing the MSGBOX on the server and not the client like you're expecting. The server will not let you do this and hence, ACESS DENIED....

Jenise
06-19-2003, 11:33 AM
Thanks for the info....I guess now I am confused on where I should be placing the message box to ensure I am executing it on the client. I currently have it embedded along with my recordset connections and SQL statements.

Thanks,
Jenise

Kodo
06-19-2003, 12:41 PM
using <% %> only will tell it to run on the server side. you must use

<script language="vbscript">
'code here
</script>

for it to work client side.