473,503 Members | 4,272 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to put a negative sign on a number based on the selection of a drop-down list?

39 New Member
I would like to create a form that allows users to enter in changes in transactions of inventory.

Is there any way the number entered into a control text box can automatically have a negative sign come before it? Or could I base the fact that there is a negative on the number on whether a drop-down box control has "inbound" or "outbound" selected?
Apr 8 '11 #1
1 1691
NeoPa
32,557 Recognized Expert Moderator MVP
You could change the value after it's been entered. The AfterUpdate event procedure could put in whatever logic you're looking for (Not quite clear exactly what from your explanation, but I'm sure you understand it well enough to implement it yourself). Clearly, that code could determine the selection of the ComboBox and use that for the desired result.
Apr 9 '11 #2

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

Similar topics

2
1604
by: Jens Jensen | last post by:
Hello, Can someone explain why this function call return a negative number -2500? System.Math.IEEERemainder(7500,5000) I would expect 2500 . below the msdn reference of this function
27
10171
by: 3acks | last post by:
I've read a lot of articles and forums trying to figure this one and have yet to come up with a solution I can get to work. I need to create a unique id. I can do this using Dmax to find the...
2
1496
by: megahurtz | last post by:
This isn't necessarily specific to PHP, but I am trying to figure out a way to pseudo-randomly generate a number based on the month. To clarify a little, I want the number returned to stay the same...
1
1091
by: Monroeski | last post by:
I'm working on an Access 2003 database where users can submit requests for personnel. For a number of complicated reasons, the best primary key to use is going to be an autonumber (or, really, just...
4
2830
by: ericjb | last post by:
Hi, I have a table with a column in which I would like to generate random numbers. I know how to use the dbms_random function but don't know how I would do what I want to do. I would like to...
3
1767
by: chanshaw | last post by:
Alright I'm not sure if I worded the title correctly but I'm looking to generate a random number based on the numbers in an arraylist. So if I have the values 1,2,12,6 I would like to generate a...
0
1105
by: digituf | last post by:
i have two table in my database which is the room table and roomtype table.i'm using phpmyadmin. room table room_no r_roomtypeID roomtype table roomtypeID roomtype
2
5176
by: simon penny | last post by:
I have a table in which I record referral records. I have a second table in which I record service records. One referral can have many service records attached. The tables are linked by referral ID -...
13
8044
by: Scott Kaempfe | last post by:
I need to identify parts we buy at our plant. I want to give each a unique serial number that is based on the date. We may have multiple parts on a given date so I want to have the unique serial...
0
7194
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7070
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6976
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5566
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4993
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.