473,385 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to use built-in functions with Record set values?

Hi Folks,
In my code i need to preceed every amount value with a currency sign selected by a user. The drop down contains a list of currency values like USD(US Dollars), EUR(Euro), INR(Indian Rupee) etc.

When we review the data entered by the users, the currency value should be preceeded with currency sign selected by the user in above drop down list. For Example
: If a user select USD(US Dollars) from the list then a Rate in another column as 10000. The view should look like USD 10000. I pull data to my form using Record Sets so how can is use LEFT(String, length) with a record set to trim first 3 characters of values selected by a user from drop down list. Please advise.
Expand|Select|Wrap|Line Numbers
  1. <td nowrap><div align="left">Currency Used For Pricing:</div></td>
  2.           <td nowrap class="highlight"> <div align="left"><%=Rs1("currency_type")%></div></td>
  3.         </tr>

Expand|Select|Wrap|Line Numbers
  1. <tr>
  2.  <td><div align="left">Current Year Rate:</div></td>
  3.           <td class="highlight"> <div align="left">$<%=Rs1("RATE1")%></div></td>
  4.         </tr>


Regards,
Chandhseke
Sep 6 '10 #1

✓ answered by jhardman

Rs1("currency_type") returns a string, so you can put this whole expression in the LEFT() function:
Expand|Select|Wrap|Line Numbers
  1. LEFT(RS1("curreny_type"), 3)
Does this answer your question?

Jared

2 1534
jhardman
3,406 Expert 2GB
Rs1("currency_type") returns a string, so you can put this whole expression in the LEFT() function:
Expand|Select|Wrap|Line Numbers
  1. LEFT(RS1("curreny_type"), 3)
Does this answer your question?

Jared
Sep 20 '10 #2
Hi Jared,
That answers my question. I have a query which is related to my above question should i open a new thread for that please advise.

Regards,
Chandhseke
Sep 22 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: JimmyT | last post by:
I just configured and installed 2.3.4 and noticed there is no datetime module. I noticed there is a datetimemodule.c file that did not get built (ie no object file). Is there something I need to...
1
by: Alex Elbert | last post by:
Hi I have built dynamic HTMLTable. Now I want to attach it directly to the Email Body - it is already built, so why not to use a ready table. However, I cannot find the way of getting plain HTML...
0
by: Andrew Crook | last post by:
does MYSQL have a quota built into it! I need it limit the size of each database AndiC
4
by: Yasutaka Ito | last post by:
Hi, Is there a way to determine which version of .NET Framework any given assembly is built with? thanks! -Yasutaka
1
by: William | last post by:
Looking for a pre built dotnet corporate or small business website template.
1
by: William | last post by:
Looking for a pre built dot net website for consulting business. I am trying to put up a quick business web for a dot net frame work. I have a provider already. I am trying to save time. Any...
1
by: Daniel | last post by:
is there any way to get to a unique build verion of an assembly at runtime? e.g. a version that is unique to the time that the assembly was built?
0
by: anthony Lichnewsky | last post by:
Hi, I have here a huge bunch of cygwin-built dlls using heavily posix api calls, and I wanted to know how to link them to some VC .NET library wrapper (using microsoft C runtime libraries this...
48
by: meyer | last post by:
Hi everyone, which compiler will Python 2.5 on Windows (Intel) be built with? I notice that Python 2.4 apparently has been built with the VS2003 toolkit compiler, and I read a post from Scott...
3
by: drewj840 | last post by:
I built a Windows service that sweeps a set of folders every 60 seconds and puts the files into a SQL Server database. I am creating a second service that will delete this set of folders and recreate...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.