IF Statement

Results 1 to 3 of 3

Thread: IF Statement

  1. #1
    Join Date
    Dec 1969

    Default IF Statement

    I need some assistance with an IF statement. Both of the statements work independent of the other, but when I join them with If...then...else statements I only get results from the second statement.<BR><BR>if not isempty (request.form("leaveOn")) then<BR>fmlaSelect = "SELECT..."<BR>else <BR>fmlaSelect = "SELECT..."<BR>end if<BR><BR>Is my statement syntax correct?<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default Don't use IsEmpty

    IsEmpty specifically is used to see if a variant has been initialized. Yours already has been initialized. What you want is<BR><BR>if request.form("leaveOn") &#060;&#062; "" Then<BR> &#039;it has data in it

  3. #3
    Join Date
    Dec 1969

    Default RE: IF Statement

    try this<BR><BR>If Trim(Request.Form("leaveOn" & "")) &#060;&#062; "" Then<BR><BR>...something is there<BR><BR>Else<BR><BR>... nothing is there<BR><BR>End If

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts