![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
:confused; I've created an ASP page that gives names and addresses of contacts. In the page is there anyway to close line space if the information in a field is empty? Name Add1 Add2 City, State zip Example is in some records Add2 is empty can the "City, State, Zip" line move up to close the space? Thanks much for your help Amy |
#3
| |||
| |||
|
|
:confused; I've created an ASP page that gives names and addresses of contacts. In the page is there anyway to close line space if the information in a field is empty? Name Add1 Add2 City, State zip Example is in some records Add2 is empty can the "City, State, Zip" line move up to close the space? Thanks much for your help Amy |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Thank you Murray for your answer... I'm still a bit confused though sorry. If I have would I put your code in add2, so that it looks like this <% if ("add2")&"A" <>"A" %> ? p %=(mmpwAttendees.Fields.Item("Affiliation").Value) %><br %=(mmpwAttendees.Fields.Item("Add1").Value)%><br %=(mmpwAttendees.Fields.Item("Add2").Value)%><br %=(mmpwAttendees.Fields.Item("City").Value)%></p Thank you for your help. Amy |
#6
| |||
| |||
|
|
My reply was a bit truncated and a bit wrong. You would have to put the recordset identification there too, e.g., p %=(mmpwAttendees.Fields.Item("Affiliation").Value) %><br %=(mmpwAttendees.Fields.Item("Add1").Value)%><br % if mmpwAttendees.Fields.Item("Add2").Value & "A" <>"A" % %=(mmpwAttendees.Fields.Item("Add2").Value)%><br % end if % %=(mmpwAttendees.Fields.Item("City").Value)%></p -- Murray --- ICQ 71997575 Team Macromedia Volunteer for Dreamweaver (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.dreamweavermx-templates.com - Template Triage! http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes ================== "adario27" <webforumsuser (AT) macromedia (DOT) com> wrote in message news:djm26p$gbh$1 (AT) forums (DOT) macromedia.com... Thank you Murray for your answer... I'm still a bit confused though sorry. If I have would I put your code in add2, so that it looks like this <% if ("add2")&"A" <>"A" %> ? p %=(mmpwAttendees.Fields.Item("Affiliation").Value) %><br %=(mmpwAttendees.Fields.Item("Add1").Value)%><br %=(mmpwAttendees.Fields.Item("Add2").Value)%><br %=(mmpwAttendees.Fields.Item("City").Value)%></p Thank you for your help. Amy |
#7
| |||
| |||
|
|
I think testing LEN(string) > 0 is probably better since VBScript is slow at concatenation. LEN() returns 0 for both "" and NULL, so you should be good. "Murray *TMM*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote in message news:djm2jd$gsj$1 (AT) forums (DOT) macromedia.com... My reply was a bit truncated and a bit wrong. You would have to put the recordset identification there too, e.g., p %=(mmpwAttendees.Fields.Item("Affiliation").Value) %><br %=(mmpwAttendees.Fields.Item("Add1").Value)%><br % if mmpwAttendees.Fields.Item("Add2").Value & "A" <>"A" % %=(mmpwAttendees.Fields.Item("Add2").Value)%><br % end if % %=(mmpwAttendees.Fields.Item("City").Value)%></p -- Murray --- ICQ 71997575 Team Macromedia Volunteer for Dreamweaver (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.dreamweavermx-templates.com - Template Triage! http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes ================== "adario27" <webforumsuser (AT) macromedia (DOT) com> wrote in message news:djm26p$gbh$1 (AT) forums (DOT) macromedia.com... Thank you Murray for your answer... I'm still a bit confused though sorry. If I have would I put your code in add2, so that it looks like this <% if ("add2")&"A" <>"A" %> ? p %=(mmpwAttendees.Fields.Item("Affiliation").Value) %><br %=(mmpwAttendees.Fields.Item("Add1").Value)%><br %=(mmpwAttendees.Fields.Item("Add2").Value)%><br %=(mmpwAttendees.Fields.Item("City").Value)%></p Thank you for your help. Amy |
#8
| |||
| |||
|
|
:confused; I've created an ASP page that gives names and addresses of contacts. In the page is there anyway to close line space if the information in a field is empty? Name Add1 Add2 City, State zip Example is in some records Add2 is empty can the "City, State, Zip" line move up to close the space? Thanks much for your help Amy |
![]() |
| Thread Tools | |
| Display Modes | |
| |