Report - sometimes works?! Why???

bbznyc

New Member
Joined
Sep 9, 2004
Messages
21
Hello Guys and Gals,

I have a problem. I have orders form which is filled out by a user but when payment field is not touched (no payment is ever entered initially), I can't run a report on employer's history or view employee's history - I get an error in my "BALANCE OWED" box. I enclosed a sample of the dbase!


Please help me - I am pulling my hair - very little left

i have attached the file here
http://home.mindspring.com/~bbznyc/FS_DB_v1.1.0v2002.zip

Thanks,
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi, I am unable to look at your database (I am using Access 2000) but I presume you have used a formula for the "Balance Owed" field and it may look something like this :

=[Total]-[Payment]

If there is nothing entered into the payment field then the formula is trying to deduct Null from [Total] resulting in the error.

If that is the case, then you can change the "Balance Owed" formula to something like this :

= [Total] - iif(IsNull([Payment]),0,[Payment])
or
= iif(IsNull([Payment]),[Total],[Total]-[Payment])

Alternatively, it may just be a matter of setting the default value of the [Payment] field to zero (the default when you created the table will be null). This should be done in both the table and on the form. Normally the form would get its default values from the table but given you have already created the form, then you will need to change the default value there too.

Lastly, if "Balance Owed" is a also field in a table (rather than a calculated control on the forms and reports) then you may want to set the default value for this field to zero too.

HTH, Andrew. :)
 
Upvote 0

Forum statistics

Threads
1,221,814
Messages
6,162,132
Members
451,743
Latest member
matt3388

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top