 | 
28-Jul-2006, 08:10 AM
|  | Guest | | | | | | | | | | Convert #s To Negative 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! | 
28-Jul-2006, 08:10 AM
|  | Guest | | | | | | | | | | 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 | 
28-Jul-2006, 08:10 AM
|  | Guest | | | | | | | | | | 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 | 
28-Jul-2006, 08:10 AM
|  | Guest | | | | | | | | | | Re: Convert #s To Negative 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 | 
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! | (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 | | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is On | | | | » Active Discussions | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | » Books You Should Read... | | | |