15188 Convert #s To Negative
Sign Up |  Live StatsLive Stats    Articles 37,350| Comments 177,415| Members 19,424, Newest yashpal singh| Online 382
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags

Convert #s To Negative

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 115 USD (23%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Show negative values Kirt84 Information Technology 3 28-Jul-2006 08:37 AM
NEGATIVE NUMBERS Contracto Information Technology 4 28-Jul-2006 08:14 AM
Negative Number formatting SCHNYDES Information Technology 1 05-Nov-2005 12:49 PM
Avoiding Negative Vibrations Soul_jyot Spiritual Articles 2 24-Oct-2005 16:58 PM


Tags
convert, negative
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:10 AM
F1stman's Avatar F1stman
Guest
 
Posts: n/a
   
   
Convert #s To Negative

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Hello All,
I am trying to set a control on a form to convert numbers typed into the
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/10174-convert-s-to-negative.html
text box to a negative number and then store that number to the table. So far
I haven't been able to think of a way to do this. My hunch is that its easier
than I am making it. Thank you for any and all assistance. Oh, by the way, if
you could explain how to use and where to put any code offered that would be
greatly appreciated. I'm a novice in VBA.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10174
Adam

*







Got anything to share on This Topic? Why not share your immediate thoughts/reaction with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:10 AM
schasteen's Avatar schasteen
Guest
 
Posts: n/a
   
   
RE: Convert #s To Negative

Have you tried in the before update event of your text box
Me![TextboxName] = Me![TextboxName] * -1

"F1stman" wrote:

> Hello All,
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10174
> I am trying to set a control on a form to convert numbers typed into the
> text box to a negative number and then store that number to the table. So far
> I haven't been able to think of a way to do this. My hunch is that its easier
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10174
> than I am making it. Thank you for any and all assistance. Oh, by the way, if
> you could explain how to use and where to put any code offered that would be
> greatly appreciated. I'm a novice in VBA.
> Adam

Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:10 AM
Rick B's Avatar Rick B
Guest
 
Posts: n/a
   
   
Re: Convert #s To Negative

I would find the absolute value, then multiply it by -1

I would put this in the before update event. Something like..

fieldname = Abs([fieldname])*-1

--
Rick B



"F1stman" wrote in message
news:AA321CA5-A42D-4838-B763-34E2BE2EFDDA@microsoft.com...
> Hello All,
> I am trying to set a control on a form to convert numbers typed into the
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10174
> text box to a negative number and then store that number to the table. So
> far
> I haven't been able to think of a way to do this. My hunch is that its
> easier
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10174
> than I am making it. Thank you for any and all assistance. Oh, by the way,
> if
> you could explain how to use and where to put any code offered that would
> be
> greatly appreciated. I'm a novice in VBA.
> Adam



Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:10 AM
Rick B's Avatar Rick B
Guest
 
Posts: n/a
   
   
Re: Convert #s To Negative

  Donate Today!  
This will work, unless the number is already entered as a negative. In
other words, if one enters -10, this would turn it into 10.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10174


--
Rick B



"schasteen" wrote in message
news:E28CB6BB-0591-43B1-8B78-F416E68DBF58@microsoft.com...
> Have you tried in the before update event of your text box
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10174
> Me![TextboxName] = Me![TextboxName] * -1
>
> "F1stman" wrote:
>
>> Hello All,
>> I am trying to set a control on a form to convert numbers typed into the
>> text box to a negative number and then store that number to the table. So
>> far
>> I haven't been able to think of a way to do this. My hunch is that its
>> easier
>> than I am making it. Thank you for any and all assistance. Oh, by the
>> way, if
>> you could explain how to use and where to put any code offered that would
>> be
>> greatly appreciated. I'm a novice in VBA.
>> Adam



Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
Is Science a Religion?
Today 04:49 AM
17 Replies, 2,068 Views
UNITED SIKHS AID Team...
Today 03:19 AM
0 Replies, 31 Views
Woolwich Killing: The...
Today 03:05 AM
26 Replies, 287 Views
Abu Nusaybah, 'Friend'...
Today 02:33 AM
0 Replies, 42 Views
Stockholm riots throw...
Today 02:14 AM
10 Replies, 104 Views
How does Sikhi help you...
Today 02:04 AM
48 Replies, 1,224 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 01:52 AM
186 Replies, 4,658 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 01:41 AM
322 Replies, 7,735 Views
Paneer: what I have...
Yesterday 22:29 PM
8 Replies, 81 Views
How Many Sikhs Have...
Yesterday 21:55 PM
698 Replies, 51,741 Views
Transgenderism ... Right...
By Kaylee
Yesterday 17:55 PM
31 Replies, 1,383 Views
Rochester Gurdwara...
Yesterday 10:55 AM
2 Replies, 85 Views
US Congress panel passes...
Yesterday 04:22 AM
0 Replies, 47 Views
Harmeet Kaur Took the...
Yesterday 03:40 AM
0 Replies, 71 Views
Panjabi Alphabet Resource
24-May-2013 23:15 PM
12 Replies, 6,565 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 07:05 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.51799 seconds with 32 queries
0