Dreamcatchers
Posts: 120
|
Posted: 07/19/2010, 2:02 PM |
|
I am building a Knowledge Management System and want to increment the number of time an article is used. I do this by having the user check a box called Relevant and then hit update.
So I added custom code the the record on the "before Update" event.
Problem is it does not seem to be executing. The usage field never gets updated.
Should I place the code with another event?
----------
Function Helpdesk_SupportArticles1_BeforeUpdate(Sender) 'Helpdesk_SupportArticles1_BeforeUpdate @23-B8CD9A5D
'Custom Code @73-73254650
' -------------------------
if helpdesk_supportarticles1.Relevance.Value = 1 then
helpdesk_supportarticles1.Useage.Value = helpdesk_supportarticles1.Useage.Value + 1
Else
End if
' -------------------------
'End Custom Code
End Function 'Close Helpdesk_SupportArticles1_BeforeUpdate @23-54C34B28
_________________
Training and LMS Developer |
|
|
|