If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > If statment to asp ??

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-18-06, 23:13
ahmed_zedan ahmed_zedan is offline
Registered User
 
Join Date: Dec 2004
Posts: 11
If statment to asp ??

I have a statement written in access query and I want to convert it to be applied on SQL Database or on ASP.Net
Access Statement:
Toal paid : IIf([TP$]>0,(Format([TP$],'Fixed') & ' $')) & IIf([TPU]>0,(Format([TPU],'Fixed') & ' Euro')) & IIf([TP$]+[TPU]=0,0)

The result is a column as following

30 $
250 Euro
20 $

How I can apply it in asp.net
Thanks;
Reply With Quote
  #2 (permalink)  
Old 01-29-06, 16:51
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
Well don't forget that you can do calculations and formating in code that does not actually reside in the actual SQL statement. And yes Access is handy in that you can use IIf() within a SQL statement.
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On