Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 16th, 2004, 12:11 PM
tdaher tdaher is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 1 tdaher User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation Automatic "0"

In a certain form, I input a "received date" and a "returned date." I created a program in visual basic to automatically calculate the business days (Monday thru Friday) between these two dates. My problem, however, is that if no date is inputed for the "returned date" (the date we finish reviewing a submittal and then ship it out) a "0" appears in the Total Days field.

What I need is for nothing to appear in the Total Days field so nothing appears on the report. Help is much appreciated. Thanks.

Reply With Quote
  #2  
Old August 16th, 2004, 03:45 PM
tvinson tvinson is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 6 tvinson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
What I need is for nothing to appear in the Total Days field so nothing appears on the report. Help is much appreciated. Thanks.
Should be easy to add an extra criteria into the base query or the report filter i.e where fldName <> 0.

Reply With Quote
  #3  
Old August 16th, 2004, 06:10 PM
ineuw ineuw is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 82 ineuw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 30 m 28 sec
Reputation Power: 5
Set your table's relevant fields' default values to Null. If there are existing 0 values, clear them. Do the same with the form's relevant text boxes' default values. If you use variables to perform the calculations in the code behind the form, be sure that they are declared as Variants. The report will not display a value if the total is 0. (5 x Null = Null). I hope this helps.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Automatic "0"


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT