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
 Mod profile user fields
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

didus
Starting Member

Austria
36 Posts

Posted - 15 June 2001 :  10:52:33  Show Profile  Visit didus's Homepage
Hi everyone,
i get following error if i want to add a new field:
Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'my_Conn.execute'

/domainreg/pop_admin_table.asp, line 16

i am not able t set the function enable, too.
Where is the problem.
Thanks
Bye.
Michael

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 15 June 2001 :  12:07:31  Show Profile  Visit HuwR's Homepage
what type of server/Asp are you running on ?

I take it the rest of the forum works ok

Go to Top of Page

didus
Starting Member

Austria
36 Posts

Posted - 15 June 2001 :  12:20:50  Show Profile  Visit didus's Homepage
asp mail 3.0 (i hope you mean this)
the rest of the forum runs correctly

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 15 June 2001 :  12:35:53  Show Profile  Visit HuwR's Homepage
could you email me your pop_admin_table.asp, I will compare it to mine see if I can figure out why it doen't like it

Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 15 June 2001 :  16:01:58  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
We discussed this same issue here

http://forum.snitz.com/forum/link.asp?TOPIC_ID=9097

@tomic

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 15 June 2001 :  18:18:47  Show Profile  Visit HuwR's Homepage
Sorry I missed the previous topic, but have not been around much the past few weeks, I thought was the likely problem with this, was just going to check against my copy.

Will update the download file accordingly

Go to Top of Page

didus
Starting Member

Austria
36 Posts

Posted - 21 June 2001 :  15:58:10  Show Profile  Visit didus's Homepage
hi, this is my pop_admin_table code. I didnīt get a email from snitz the last days, so I havenīt seen the new posts.
Thank you for your help.
bye

<!--#include file="config.asp"-->
<!--#include file="inc_top_short.asp"-->
<%

Set rs = Server.CreateObject("ADODB.Recordset")
if request("emin") = "New" then
set rs.ActiveConnection = my_Conn
rs.CursorType = 3
strSQL = "SELECT COUNT(*)+1 AS NEWNUM FROM " & strTablePrefix & "USERFIELDS"
set rs2 = my_conn.execute(strSQL)
if not rs2.eof then
usrNum = rs2("NEWNUM") + 1
else
esrNum = 1
end if
my_Conn.Execute( "INSERT INTO " & strTablePrefix & "USERFIELDS (USR_LABEL,USR_FIELDTYPE,USR_SHORTNAME) Values ('NewLabel','S','User_" & usrNum & "')")
%>
<script language="JavaScript">
self.opener.location.href="admin_user_fields.asp";
window.close()
</script>
<%
end if
%>

<%
if request("emin") = "Del" then
sfldValue = request("USR_FIELD_ID")

if isNumeric(sfldValue) then
sWhere = "USR_FIELD_ID" & "=" & sfldValue
else
sWhere = "USR_FIELD_ID" & "='" & sfldValue & "'"
end if
my_Conn.execute "delete from " & strTablePrefix & "USERFIELDS WHERE " & sWhere
my_Conn.execute "delete from " & strMemberTablePrefix & "MEMBERFIELDS WHERE " & sWhere
%>
<script language="JavaScript">
self.opener.location.href="admin_user_fields.asp";
window.close()
</script>

<%
response.end
end if
%>

<br>
<br>
<div align="center"><% if request("preview") = "preDel" then %>

<p>Are you sure you want to delete the record?</p>
<a href="pop_admin_table.asp?<%=request.querystring%>&emin=Del" >Yes</a> 
<% Elseif request("preview") = "preNew" then %>
<p>Are you sure you want to Add a new record?</p>
<a href="pop_admin_table.asp?<%=request.querystring%>&emin=New" >Yes</a> 
<% End If %>

<a href="javascript:window.close()">No</a>
<br>
</div></font>

</td>
</tr>
</table>

</BODY>
</HTML>
<%
my_Conn.Close
set my_Conn = nothing
%>



Edited by - didus on 21 June 2001 15:59:49
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 21 June 2001 :  16:07:29  Show Profile  Visit HuwR's Homepage
if you look at your post, I have added a set of ( .. )

Go to Top of Page

didus
Starting Member

Austria
36 Posts

Posted - 21 June 2001 :  16:23:34  Show Profile  Visit didus's Homepage
quote:

if you look at your post, I have added a set of ( .. )




Thanks Iīve do it!
in admin_user_fields I have following porblem.
The user field canīt be set to enable.

"User Fields are NOT enabled, check the box and press SET to enable"


Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 21 June 2001 :  19:29:17  Show Profile  Visit HuwR's Homepage
if you mail me your config.asp and admin_user_fields.asp I will take a quick look

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.37 seconds. Powered By: Snitz Forums 2000 Version 3.4.07