Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / November 2005

Tip: Looking for answers? Try searching our database.

Another question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joe Cilinceon - 02 Nov 2005 18:32 GMT
How do you set a fields value to default to a negative number in a table.

Signature

Joe Cilinceon

Rick B - 02 Nov 2005 18:56 GMT
You don't.  You want someone to type "1" but store -1?  Why?

Just adjust your calculations to always subtract.

If I indicate that I sold 1 widget, I would reduce my onhand inventory by
one.  I would not, however, store "-1" in my order details table.

If you do insist on doing this, I'd think you would do it using code in your
form.  Before updating the record just multiply by -1.

Signature

Rick B

> How do you set a fields value to default to a negative number in a table.
KARL DEWEY - 02 Nov 2005 18:59 GMT
First the data type must be either single or double.  Open the table in
design view and click on the menu VIEW - Properties.
In the Default enter your negative value -    -1       or    -125

> How do you set a fields value to default to a negative number in a table.
Joe Cilinceon - 02 Nov 2005 19:09 GMT
Thanks again guys but as soon as I sent this, it dawned on me to just fix
the data before updateing the table if they forget to enter the number as a
negitive. DUH.

Signature

Joe Cilinceon

John Vinson - 02 Nov 2005 19:51 GMT
>How do you set a fields value to default to a negative number in a table.

With an Update query, updating [fieldname] to

- [fieldname]

                 John W. Vinson[MVP]    
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.