Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Nathon Jones #1
HIDE IF startdate is the same as enddate
Hi again,
I have the following code on my page. I am trying to hide the
"eventenddate" if it is the same as the eventdate.
<%IF (rsDateMatch.Fields.Item("eventenddate").Value) <>
"<%=(rsDateMatch.Fields.Item('eventdate').Value)%> " Then%>
- <%= DoDateTime((rsDateMatch.Fields.Item("eventenddate" ).Value), 1, 2057)
%><br>
<%End IF%>
The above is giving me:
Microsoft VBScript compilation (0x800A0409)
Unterminated string constant
So I tried:
<%IF (rsDateMatch.Fields.Item("eventenddate").Value) <>
"(rsDateMatch.Fields.Item('eventdate').Value)" Then%>
- <%= DoDateTime((rsDateMatch.Fields.Item("eventenddate" ).Value), 1, 2057)
%><br>
<%End IF%>
But this is showing me both the start date and the end date, even if they
are the same.
Any advice would be greatly appreciated. Thanks.
Nath.
Nathon Jones Guest
-
popup menus won't hide - PVII show/hide layers behaviour
I've used the 'Auto show/hide by PVII" behaviour to create some popup menus for the navigation which make use of divs which appear and disappear.... -
Hide a VAR (and its value) from URL
If you don't want to redirect, then you can't use cflocation as that is what cflocation does. I would set up a client, session or cookie variable... -
where DATE is BETWEEN startdate and enddate...how?
Hi, I need a little help with a SELECT statement. I have an events table in an Access db. The events have a start date and an end date. ... -
how to hide %20, %x or + when getting from DB
Hi there! I migrated a mysql DB into a MSSQL DB. In this DB all chars like "blank" or @ are encoded in...whats it called in english? :) you... -
HowTo Select an ID where a "Date" is between startDate and endDate?
Hello, I have this table ID startDate endDate ------------------------------- 1 04/01/2003 07/30/2003 2 08/01/2003 09/30/2003... -
RobGT #2
Re: HIDE IF startdate is the same as enddate
You have extra quote marks around the second element of the comparison chunk
of code...
Remove them and you should be fine.
HTH
Rob
RobGT Guest
-
Nathon Jones #3
Re: HIDE IF startdate is the same as enddate
Thanks Rob,
That's done it.
<%IF (rsDateMatch.Fields.Item("eventenddate").Value) <>
(rsDateMatch.Fields.Item("eventdate").Value) Then%>
- <%= DoDateTime((rsDateMatch.Fields.Item("eventenddate" ).Value), 1, 2057)
%>
<%End IF%>
Great.
Nath.
"RobGT" <rob@lighthouseuk.removeme.net> wrote in message
news:d0k2sp$n8c$1@forums.macromedia.com...> You have extra quote marks around the second element of the comparison
> chunk of code...
> Remove them and you should be fine.
> HTH
> Rob
>
Nathon Jones Guest



Reply With Quote

