|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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.
|
![]() |
| Viewing: Dev Articles Community Forums > Databases > Microsoft Access Development > Automatic "0" |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|