PC Review


Reply
Thread Tools Rate Thread

Change display values for fields

 
 
=?Utf-8?B?U3VzYW4gRw==?=
Guest
Posts: n/a
 
      23rd Jan 2005
Ok, I am new to this. I am displaying data from a access database on a
page. I am using the DRW to retrieve data based on criteria. What I can't
seem to do is display a different value for a field based on a specific
value. i.e. - I want to display the email addresses if PubEmail = 'Yes',
but display "non-published" if PubEmail is 'No'.

I have tried to add a SQL statement to Custom Query, but everything I try
results in an error.

I appreciate any/all help.

 
Reply With Quote
 
 
 
 
Kathleen Anderson [MVP - FrontPage]
Guest
Posts: n/a
 
      23rd Jan 2005
See the answer to your previous post.

--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
web: http://www.spiderwebwoman.com/resources/
blog: http://msmvps.com/spiderwebwoman/category/321.aspx



"Susan G" <Susan (E-Mail Removed)> wrote in message
news:035E2EEA-310E-42DC-AA88-(E-Mail Removed)...
> Ok, I am new to this. I am displaying data from a access database on a
> page. I am using the DRW to retrieve data based on criteria. What I
> can't
> seem to do is display a different value for a field based on a specific
> value. i.e. - I want to display the email addresses if PubEmail = 'Yes',
> but display "non-published" if PubEmail is 'No'.
>
> I have tried to add a SQL statement to Custom Query, but everything I try
> results in an error.
>
> I appreciate any/all help.
>



 
Reply With Quote
 
=?Utf-8?B?U3VzYW4gRw==?=
Guest
Posts: n/a
 
      23rd Jan 2005
I can't find my prior post - please help!

"Kathleen Anderson [MVP - FrontPage]" wrote:

> See the answer to your previous post.
>
> --
> ~ Kathleen Anderson
> Microsoft MVP - FrontPage
> Spider Web Woman Designs
> web: http://www.spiderwebwoman.com/resources/
> blog: http://msmvps.com/spiderwebwoman/category/321.aspx
>
>
>
> "Susan G" <Susan (E-Mail Removed)> wrote in message
> news:035E2EEA-310E-42DC-AA88-(E-Mail Removed)...
> > Ok, I am new to this. I am displaying data from a access database on a
> > page. I am using the DRW to retrieve data based on criteria. What I
> > can't
> > seem to do is display a different value for a field based on a specific
> > value. i.e. - I want to display the email addresses if PubEmail = 'Yes',
> > but display "non-published" if PubEmail is 'No'.
> >
> > I have tried to add a SQL statement to Custom Query, but everything I try
> > results in an error.
> >
> > I appreciate any/all help.
> >

>
>
>

 
Reply With Quote
 
Kathleen Anderson [MVP - FrontPage]
Guest
Posts: n/a
 
      23rd Jan 2005
http://www.microsoft.com/office/comm...0-83cf43ce8d16

--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
web: http://www.spiderwebwoman.com/resources/
blog: http://msmvps.com/spiderwebwoman/category/321.aspx



"Susan G" <(E-Mail Removed)> wrote in message
news:3E266699-125D-48DF-B6D6-(E-Mail Removed)...
>I can't find my prior post - please help!
>
> "Kathleen Anderson [MVP - FrontPage]" wrote:
>
>> See the answer to your previous post.
>>
>> --
>> ~ Kathleen Anderson
>> Microsoft MVP - FrontPage
>> Spider Web Woman Designs
>> web: http://www.spiderwebwoman.com/resources/
>> blog: http://msmvps.com/spiderwebwoman/category/321.aspx
>>
>>
>>
>> "Susan G" <Susan (E-Mail Removed)> wrote in message
>> news:035E2EEA-310E-42DC-AA88-(E-Mail Removed)...
>> > Ok, I am new to this. I am displaying data from a access database on
>> > a
>> > page. I am using the DRW to retrieve data based on criteria. What I
>> > can't
>> > seem to do is display a different value for a field based on a specific
>> > value. i.e. - I want to display the email addresses if PubEmail =
>> > 'Yes',
>> > but display "non-published" if PubEmail is 'No'.
>> >
>> > I have tried to add a SQL statement to Custom Query, but everything I
>> > try
>> > results in an error.
>> >
>> > I appreciate any/all help.
>> >

>>
>>
>>



 
Reply With Quote
 
Jon Spivey
Guest
Posts: n/a
 
      23rd Jan 2005
Hi,

The SQL would be (I'm assuming Access here)

SELECT Field1, Field2, IIF(PubEmail='Yes', EmailAddressField, 'Not
Published') AS EmailAddress
FROM YourTable

Just change the field/table names to suit and enter this as a Custom Query -
wizard step 2.

Jon

"Susan G" <Susan (E-Mail Removed)> wrote in message
news:035E2EEA-310E-42DC-AA88-(E-Mail Removed)...
> Ok, I am new to this. I am displaying data from a access database on a
> page. I am using the DRW to retrieve data based on criteria. What I
> can't
> seem to do is display a different value for a field based on a specific
> value. i.e. - I want to display the email addresses if PubEmail = 'Yes',
> but display "non-published" if PubEmail is 'No'.
>
> I have tried to add a SQL statement to Custom Query, but everything I try
> results in an error.
>
> I appreciate any/all help.
>



 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      23rd Jan 2005
If the PubEmail is a Yes/No field, then you have to test for it using:

<If rs("PubEmail") = YES Then %><a href="mailto:<%=rs("Email")%>"><%=rs("Email")%></a><% Else
%>non-published<% End If %>

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"Susan G" <Susan (E-Mail Removed)> wrote in message
news:035E2EEA-310E-42DC-AA88-(E-Mail Removed)...
> Ok, I am new to this. I am displaying data from a access database on a
> page. I am using the DRW to retrieve data based on criteria. What I can't
> seem to do is display a different value for a field based on a specific
> value. i.e. - I want to display the email addresses if PubEmail = 'Yes',
> but display "non-published" if PubEmail is 'No'.
>
> I have tried to add a SQL statement to Custom Query, but everything I try
> results in an error.
>
> I appreciate any/all help.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display Fields Change TKR1133 Microsoft Outlook Discussion 2 10th Apr 2009 04:14 PM
Unique Values Property - how to display additional fields not uniq SG_BA_LA Microsoft Access Queries 5 25th Mar 2008 11:35 AM
Display fields Limited on Values =?Utf-8?B?bGFtYXJ0cG0=?= Microsoft Access Queries 7 6th Jul 2007 04:58 PM
Omit display of fields on report if they do not hold values nathank Microsoft Access 0 3rd May 2006 03:39 PM
How not to display/print zero values in form fields in Word? =?Utf-8?B?cGV0ZXI=?= Microsoft Word Document Management 2 14th Sep 2004 03:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:18 PM.