Advertisement

01.18.2007 at 11:20PM PST, ID: 22128539
[x]
Attachment Details

Specify number format for returned value from function

Asked by geraintcollins in Oracle Database

Tags: oracle, number, format, function


How do I specify the number format for the returned variable.

the following code will compile if I remove the (5,3).  

The view works fine in oracle but Access doesn't want to display the decimal values in a combo box and instead displays a bunch of chinese type characters when I use the results as a recordsource.

I've tried converting the results to character format but then I can't sort the results....aargh!

create or replace
FUNCTION                      FN_NEW_TEST
(Lat Number)
RETURN NUMBER(5,3) AS
BEGIN
    RETURN Lat;
END; Start Free Trial
[+][-]01.19.2007 at 12:25AM PST, ID: 18347650

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Oracle Database
Tags: oracle, number, format, function
Sign Up Now!
Solution Provided By: Henka
Participating Experts: 3
Solution Grade: A
 
 
[+][-]01.19.2007 at 12:30AM PST, ID: 18347662

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.19.2007 at 01:49AM PST, ID: 18347881

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.19.2007 at 01:59AM PST, ID: 18347916

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.19.2007 at 03:01AM PST, ID: 18348152

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.19.2007 at 06:04AM PST, ID: 18349024

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]01.20.2007 at 02:24AM PST, ID: 18355657

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32