|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Easy Subtraction in fields ?
I have three fields that are named
Deposit Balance Refund I would like to have the Deposit and Balance fields show the same value when it's entered into the recordset and if a value for Refund is entered, have that amount subtracted from the Balance leaving the Deposit the same. SQLstring = "Select Deposit, Refund WHERE Refund - Balance" ??? I'd rather do it automatically on the Text_Change Sub when data is entered in the field. THX in advance. |
|
#2
|
|||
|
|||
|
Figured most of it out
Text11.Text = Val(Text9.Text) - Val(Text10.Text)
This works but only first two digits, if I use currency format it doesn't. Anyone know how I can use cents (10.XX) with using number formating in the textbox. If I type in 10.50 the result changes to using only two digits. THX |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > Easy Subtraction in fields ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|