Author |
Topic  |
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 02 July 2008 : 07:50:29
|
If you delete an event from within cal.asp, no problems the event is removed, however if you check that previous topic in forum.asp the event is still showing.
Testing the system if you delete from within cal.asp, a popup window cal_delete.asp prompts for a password confirmation and then deletes the event only in the events calendar. However, if you select the event displayed in topic.asp for deletion, a pop-up pop_delete.asp, again requsts password confirmation and then deletes both topic and calendar cal.asp event. Thus flushing all associated detail.
Should, this delete process be both ways ie in cal_delete and pop_delete < |
|
Carefree
Advanced Member
    
Philippines
4217 Posts |
Posted - 02 July 2008 : 11:03:50
|
It should, yes. After you delete the topic, though, you'll have to update your topic & forum counts. Adding the following just above the writefooter in cal_delete.asp should do it, but it'd be nice if one of the Snitz gurus gave a second opinion:
< |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 02 July 2008 : 11:07:54
|
if you are deleting a topic, for completeness you should also delete any replies otherwise there will be redundant records.< |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 02 July 2008 : 11:39:41
|
carefree I tried the suggested and the following error message displays in cal_delete Microsoft OLE DB Provider for ODBC Drivers error '80040e14' [Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement. /forum/cal_delete.asp, line 123 line 123 in red < |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 02 July 2008 : 12:18:17
|
can you add the following lines between 122 and 123
Response.write(strSql) Response.End
and post what the query looks like for us< |
 |
|
Carefree
Advanced Member
    
Philippines
4217 Posts |
Posted - 02 July 2008 : 12:28:41
|
quote: Originally posted by HuwR
if you are deleting a topic, for completeness you should also delete any replies otherwise there will be redundant records.
ok - This should get rid of replies, too. The risposte issue pointed out below was probably causing Andy's error.
< |
Edited by - Carefree on 02 July 2008 15:11:25 |
 |
|
modifichicci
Average Member
  
Italy
787 Posts |
|
Carefree
Advanced Member
    
Philippines
4217 Posts |
Posted - 02 July 2008 : 12:43:49
|
There, that should fix the risposte issue.< |
Edited by - Carefree on 02 July 2008 12:45:34 |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 02 July 2008 : 13:03:31
|
Nearly there, I receive this error <font color="purple">Microsoft VBScript compilation error '800a03f6' Expected 'End' /forum/cal_delete.asp, line 173 </font id="purple"> where 173 is in red
|
 |
|
Carefree
Advanced Member
    
Philippines
4217 Posts |
Posted - 02 July 2008 : 14:02:08
|
You're missing an end if just before the writefooter.< |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 02 July 2008 : 14:05:10
|
I assume: end WriteFooterShort Response.End
< |
 |
|
Carefree
Advanced Member
    
Philippines
4217 Posts |
Posted - 02 July 2008 : 14:22:55
|
No, "end if"< |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 02 July 2008 : 14:55:57
|
That was done then then: Microsoft OLE DB Provider for ODBC Drivers error '80040e37'
[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot find the input table or query 'REPLY'. Make sure it exists and that its name is spelled correctly.
/forum/cal_delete.asp, line 116
strSql = "DELETE FROM " & strActivePrefix & "REPLY " strSql = strSql & " WHERE TOPIC_ID = " & TOPIC_ID my_Conn.Execute (strSql),,adCmdText + adExecuteNoRecords
I appreciate the support Carefree Thank you so far..< |
 |
|
Carefree
Advanced Member
    
Philippines
4217 Posts |
Posted - 02 July 2008 : 15:10:56
|
Change the word Active to the word Table in the second set of sql.< |
 |
|
Carefree
Advanced Member
    
Philippines
4217 Posts |
Posted - 02 July 2008 : 15:19:44
|
Fixed the routine:
< |
Edited by - Carefree on 02 July 2008 15:21:02 |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 02 July 2008 : 16:29:26
|
Carefree I thought we had it, selecting an event for delete there was a slight delay and the popup cal_delete appears prompting for password etc by underneath the submit button we have error '80020009' /forum/cal_delete.asp, line 125
line 125 is strSql = strSql & " WHERE FORUM_ID = " & rsCal("FORUM_ID")
Mega apologies for absorbing so much of you valuable time it is greatly appreciated what you have done and the support is second to none.. < |
 |
|
Topic  |
|
|
|