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 / Forms Programming / March 2007

Tip: Looking for answers? Try searching our database.

Default Value to Currency

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
skk - 13 Mar 2007 18:19 GMT
Hi!

I have this query that I'm using in the form.  The two fields "Travel" &
"Misc" is defined as currency but when I run the query it shows as blank.  
What I want to accomplish is to use this query as template to build the
records with this two fields all showing zero dollar.  so, each time user
select particular (catagory A (1-5), catagory B (1-20), catagory C (1-30)
etc.) items then shows all # of items with two fields zero.  Please advise
me!  Thanks

SELECT tblOtherCosts.ContractID, tblContractWP.ContractType,
tblContractWP.WP, tblContractWP.Program, tblOtherCosts.OtherCostsID,
tblOtherCosts.Travel, tblOtherCosts.Misc, tblOtherCosts.ContractTypeID,
tblOtherCosts.PeriodEndDateID
FROM tblContractWP LEFT JOIN tblOtherCosts ON tblContractWP.ContractTypeID =
tblOtherCosts.ContractTypeID;
Carl Rapson - 14 Mar 2007 16:48 GMT
You can use the Nz function:

... Nz(tblOtherCosts.Travel, 0) AS Travel, Nz(tblOtherCosts.Misc,0) AS Misc
...

Note: If you modify those fields in the Table to have a Default Value of
zero, then new records will always place a zero in those fields.

Carl Rapson

> Hi!
>
[quoted text clipped - 13 lines]
> =
> tblOtherCosts.ContractTypeID;
skk - 15 Mar 2007 15:08 GMT
Carl, thank you I appreciate your response.  That works for the default value
but I think I have other issues.

> You can use the Nz function:
>
[quoted text clipped - 23 lines]
> > =
> > tblOtherCosts.ContractTypeID;
 
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.