Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Private messages mod error
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Jeepers Ron
New Member

USA
95 Posts

Posted - 10 May 2002 :  14:12:45  Show Profile  Visit Jeepers Ron's Homepage
My private messages are working but. When any of my members go into the Preferences and Changes the Enable/Disable Private Messages to either Enable or Disable,
This error code pops up.
Microsoft JET Database Engine error '80040e07'
Data type mismatch in criteria expression.
/forum/pm_options.asp, line 58

Any ideas?


Jeepers Ron
New Member

USA
95 Posts

Posted - 11 May 2002 :  07:17:46  Show Profile  Visit Jeepers Ron's Homepage
Funny thing about this error is:
It works if I change this setting logged in as the administrator, but does not work when logged in as a regular member, giving me that error code.

Also, how do I find line 58 using note pad as my editer?



Edited by - Jeepers Ron on 11 May 2002 07:23:57
Go to Top of Page

crash
Advanced Member

Netherlands
2064 Posts

Posted - 11 May 2002 :  07:20:52  Show Profile  Visit crash's Homepage
by counting. use an editor such as InterDev for line numbers.



Crash's Site | Crash is from
Go to Top of Page

Jeepers Ron
New Member

USA
95 Posts

Posted - 11 May 2002 :  07:35:30  Show Profile  Visit Jeepers Ron's Homepage
I take it, that's not a free download?

Go to Top of Page

crash
Advanced Member

Netherlands
2064 Posts

Posted - 11 May 2002 :  07:38:13  Show Profile  Visit crash's Homepage
unfortunately, no. but you could try a search on this site for "editor"...



Crash's Site | Crash is from
Go to Top of Page

Jeepers Ron
New Member

USA
95 Posts

Posted - 11 May 2002 :  08:13:01  Show Profile  Visit Jeepers Ron's Homepage
Here is lines 50 through 70. I don't see what's wrong, but then again I don't know what I'm looking for.

if Request.QueryString("mode") = "setoptions" then
'## Forum_SQL
strSql = "UPDATE " & strMemberTablePrefix & "MEMBERS "
strSql = strSql & " SET M_PMRECEIVE = '" & Request.Form("statusstorage") & "', "
strSql = strSql & " M_PMEMAIL = '" & Request.Form("emailstorage") & "'"
strSql = strSql & " WHERE " & strMemberTablePrefix & "MEMBERS.M_NAME = '" & strDBNTUserName & "'"
strSql = strSql & " AND " & strMemberTablePrefix & "MEMBERS.M_PASSWORD = '" & Request.Cookies(strUniqueID & "User")("PWord") & "'"

This is line 58-> my_Conn.Execute(strSql)
if strSetCookieToForum = 1 then
Response.Cookies(strCookieURL & "paging").Path = strCookieURL
end if
Response.Cookies(strCookieURL & "paging")("outbox") = Request.Form("layoutstorage")
Response.Cookies(strCookieURL & "paging").Expires = dateAdd("d", 360, strForumTimeAdjust)

Response.Write "<meta http-equiv=""Refresh"" content=""2; URL=pm_view.asp"">" & vbNewLine & _
"<center>" & vbNewLine & _
"<br><br><br>" & vbNewLine & _
"<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Success</b></font>" & vbNewLine & _
"<br>" & vbNewLine & _
"<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href=""pm_view.asp""><b>Return to your inbox</b></a></font>" & vbNewLine & _



Edited by - Jeepers Ron on 11 May 2002 08:16:11
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 11 May 2002 :  12:48:17  Show Profile
I use this editor: http://www.araneae.com

try changing the following 2 lines of code from this:

strSql = strSql & " SET M_PMRECEIVE = '" & Request.Form("statusstorage") & "', "
strSql = strSql & " M_PMEMAIL = '" & Request.Form("emailstorage") & "'"


to this:

strSql = strSql & " SET M_PMRECEIVE = " & Request.Form("statusstorage")
strSql = strSql & ", M_PMEMAIL = " & Request.Form("emailstorage")
Go to Top of Page

Jeepers Ron
New Member

USA
95 Posts

Posted - 11 May 2002 :  19:14:46  Show Profile  Visit Jeepers Ron's Homepage
Okay, I tried that. now I get this error message

Microsoft JET Database Engine error '80040e14'

Syntax error (missing operator) in query expression ''1 M_PMEMAIL = '1'.

/forum/pm_options.asp, line 58



Go to Top of Page

crash
Advanced Member

Netherlands
2064 Posts

Posted - 11 May 2002 :  19:19:41  Show Profile  Visit crash's Homepage
quote:

Syntax error (missing operator) in query expression ''1 M_PMEMAIL = '1'.



you think that's odd? what is the red number doing there?

try to be more carefull when you copy/paste some code...



Crash's Site | Crash is from
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 11 May 2002 :  19:31:03  Show Profile
you are missing the comma, make sure you copy the lines of code exactly like I have them above.
Go to Top of Page

Jeepers Ron
New Member

USA
95 Posts

Posted - 11 May 2002 :  21:05:23  Show Profile  Visit Jeepers Ron's Homepage
okay, I made that change but I'm still having problems. I've signed in as a new user many times and this is what happens:
First I go into Private Messages then to Preferences

The strange thing I found out is; Their are three options you can change the first 2 don't have anything picked, but the 3rd one has something picked. If I just pick one option and leave one without click on it (the little green dot in the O)
Then I'll get a error code.

This was the lastest:

Microsoft JET Database Engine error '80040e14'
Syntax error in UPDATE statement.
/forum/pm_options.asp, line 58

But, If I check them all before pressing Submit Then I don't get any error code and if works from then on.

BUT
There is still another problem.
If I change InBox/OutBox Preferences to 2 page layout then log into my other ID where I had this option set to single page layout would end up 2 page layout This change is effecting all members.

Any ideas?


Edited by - Jeepers Ron on 11 May 2002 21:07:26
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.49 seconds. Powered By: Snitz Forums 2000 Version 3.4.07