CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 If statement for a fld based on another field ASP

Print topic Send  topic

Author Message
AudiTT @ Mci
Posted: 03/01/2002, 9:50 AM

That was a tad confusing..

Here goes. I have a form, and on this form, I have 2 fields. 1 is Deleted, and the other is ActionItem. Deleted is a check box, so 0 or 1 and ActionItem is a text box.

In the After Insert Staement, I want the field ActionItem to equal "Updated", Deleted is not checked, and "Deleted" if it is. Please help.

I tried this and other things without any luck.

fldActionItem = IF (getparam("Deleted")) = "1" THEN
"Deleted"
else
"Updated"
end if
SamM @ Somewhere.gov
Posted: 03/01/2002, 8:05 PM

Looks like a problem with your syntax.
Below is your code the way it stands:

fldActionItem = IF (getparam("Deleted")) = "1" THEN
"Deleted"
else
"Updated"
end if

Here is the first thing I would try:
If getparam("deleted")="1" then
fldActionItem = "Deleted"
end if
If getparam("deleted")<>"1" then
fldActionItem = "Updated"
end if

I hope I'm not over looking the obvious, but that should work.
If not let me know.

Best Regards,
Sam Moses
Web Guy

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.