replacing fields

Results 1 to 3 of 3

Thread: replacing fields

  1. #1
    Join Date
    Dec 1969

    Default replacing fields

    In an ASP submit form, I have 3 fields<BR>address 1<BR>address 2<BR>organisation<BR><BR>if address 2 is left blank, move address 1 into address 2.<BR>Also copy organisation into address 1.<BR><BR>My code is of the following...<BR><BR>if isNull (address_2) then<BR> address_2 = address_1<BR> address_1 = organisation<BR><BR>end if<BR>But it doesn&#039;t seem to work. Your help is very much appreciated. Thanks

  2. #2
    J. Paul Schmidt Guest

    Default Check Out Len()

    To check for a blank variable that was assigned from a posted form field, instead of the following:<BR>if isNull (address_2) then <BR><BR>Perhaps try something like this instead:<BR>If Len(address_2) = 0 Then<BR><BR>Best regards,<BR>-Paul<BR><BR>J. Paul Schmidt, MBA<BR>Databases on the Web<BR><BR><BR>

  3. #3
    Montesinos Guest

    Default RE: replacing fields

    if address_1 = "" then &#039; not isNull()<BR>address_1 = addres_2<BR>addrsess_2 = organisation<BR>end if<BR>--<BR>if you have have some knowledge on C<BR>then you can understand it.<BR>

Posting Permissions

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