PC Review


Reply
Thread Tools Rate Thread

Defined number?

 
 
Jay
Guest
Posts: n/a
 
      12th Oct 2006
If I have a long number that I need to use a lot in calculations &
expressions, is there a way of assigning it a name or something for me
to use i.e. instead of -

[OldMethodologyValue]*1.317122564695

I could have:

[OldMethodologyValue]*Name

Where Name=1.317122564695

If anyone could help I'd really appreciate it.

Regards,

Jay
 
Reply With Quote
 
 
 
 
John Vinson
Guest
Posts: n/a
 
      12th Oct 2006
On Thu, 12 Oct 2006 19:52:43 +0100, Jay <(E-Mail Removed)> wrote:

>If I have a long number that I need to use a lot in calculations &
>expressions, is there a way of assigning it a name or something for me
>to use i.e. instead of -
>
>[OldMethodologyValue]*1.317122564695
>
>I could have:
>
>[OldMethodologyValue]*Name
>
>Where Name=1.317122564695
>
>If anyone could help I'd really appreciate it.
>
>Regards,
>
>Jay


A couple of ways you could do this. One rather crude one would be to
write a dumb little VBA function:

Public Function MyNumber() As Double
MyNumber = 1.317122564695
End Function

and just use MyNumber() in your expression.

If the number will ever vary, it might be better to store it in a
little one-row, one-field table and use DLookUp or a Query to look it
up. With a Query you can just include the table with no join line -
since there's only one row in the table you'll just get the one value.

John W. Vinson[MVP]
 
Reply With Quote
 
Jay
Guest
Posts: n/a
 
      12th Oct 2006
Thanks for the suggestions John, I appreciate your help.

Best Regards,

Jay


John Vinson wrote:
> On Thu, 12 Oct 2006 19:52:43 +0100, Jay <(E-Mail Removed)> wrote:
>
>> If I have a long number that I need to use a lot in calculations &
>> expressions, is there a way of assigning it a name or something for me
>> to use i.e. instead of -
>>
>> [OldMethodologyValue]*1.317122564695
>>
>> I could have:
>>
>> [OldMethodologyValue]*Name
>>
>> Where Name=1.317122564695
>>
>> If anyone could help I'd really appreciate it.
>>
>> Regards,
>>
>> Jay

>
> A couple of ways you could do this. One rather crude one would be to
> write a dumb little VBA function:
>
> Public Function MyNumber() As Double
> MyNumber = 1.317122564695
> End Function
>
> and just use MyNumber() in your expression.
>
> If the number will ever vary, it might be better to store it in a
> little one-row, one-field table and use DLookUp or a Query to look it
> up. With a Query you can just include the table with no join line -
> since there's only one row in the table you'll just get the one value.
>
> John W. Vinson[MVP]

 
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
Auto copy and insert a defined number of rows as defined in a cell Billy Microsoft Excel Programming 1 18th Mar 2010 10:48 PM
Defined number of characters =?Utf-8?B?Q2Fycmll?= Microsoft Excel Misc 3 2nd Feb 2006 05:44 PM
Insert Row by a defined Number comotoman Microsoft Excel Misc 4 11th Oct 2005 09:50 PM
Re: limit of number of links that could be defined in a ppt? Sonia Microsoft Powerpoint 0 27th Aug 2004 06:49 PM
Re: limit of number of links that could be defined in a ppt? Kathy J Microsoft Powerpoint 0 27th Aug 2004 06:43 PM


Features
 

Advertising
 

Newsgroups
 


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