This topic is locked

Conditional Entry

3/2/2009 10:55:43 AM
ASPRunnerPro General questions
K
kwarden@mpr.com author

Greetings,
Trying to use the Now() function to enter a date in a field if that field has been populated with data. What is the vaule please to use for a field that contains data - any data? Any help is sincerely and greatly appreciated! Thanks to all.
Here is what I have entered in the Events, Edit Page, Before Edit (Before Records Updated):
[codebox]'If dict("Response Field")=1

'then

'dict("Response Field") = dict("Response Field") & vbcrlf & Now() & vbcrlf

'else

'dict("Response Field") = null

'End If[/codebox]

Sergey Kornilov admin 3/2/2009

Try this:

If dict("Response Field")<>"" then

dict("Response Field") = dict("Response Field") & vbcrlf & Now() & vbcrlf

End If
K
kwarden@mpr.com author 3/2/2009

Try this:

If dict("Response Field")<>"" then

dict("Response Field") = dict("Response Field") & vbcrlf & Now() & vbcrlf

End If


Replied in email and will reply here - this worked! Thank you VERY much!