Count of records in a sub form displays #error when there are no returns
I am attempting to convert an Access database from 2003 to 2007. I am having trouble convert on formula in the control source on a form. In a sub form I have a hidden Text box that counts the records returned in the sub form. This then is displayed on
the main form and used in other calculations. When there is one or more records return everything is working fine.
However, when there are no records returned, the Hidden Text box on the sub form returns a null value and the text box that is displayed on
the main form returns a #Error message.
I have searched and applied a work around that can be found here -
Here are the different formulas that I have used.
Text107 is the hidden text box which counts the records in the sub form.
Formula used in the hidden text box (Text107) =IIf(FormHasData([Form]),Count([PaymentAmount]),0) - note - when there are no records returned this still displays a null value.
Formulas that I have tried to display this on the main form -
=IIf([sub_member_payments].[Form]![Text107]=1 Or [sub_member_payments].[Form]![Text107]>1,[sub_member_payments].[Form]![Text107],0)
Any Help on this is appreciated!
Keys to the Problem Count of records in a sub form displays #error when there are no returns
Manually editing the Windows registry to fix Error Count of records in a sub form displays #error when there are no returns
Caution: Unless you an advanced computer user, we DO NOT recommend editing the Windows registry manually. Using Registry Editor incorrectly can cause serious problems that may require you to reinstall Windows. We do not guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.
- Click the Start button.
- Type "command" in the search box... DO NOT hit ENTER yet!
- While holding CTRL-Shift on your keyboard, hit ENTER.
- You will be prompted with a permission dialog box.
- Click Yes.
- A black box will open with a blinking cursor.
- Type "regedit" and hit ENTER.
- In the Registry Editor, select the Error 0x9C-related key (eg. Windows Operating System) you want to back up.
- From the File menu, choose Export.
- In the Save In list, select the folder where you want to save the Windows Operating System backup key.
- In the File Name box, type a name for your backup file, such as "Windows Operating System Backup".
- In the Export Range box, be sure that "Selected branch" is selected.
- Click Save.
- The file is then saved with a .reg file extension.
- You now have a backup of your MACHINE_CHECK_EXCEPTION-related registry entry.
Another Safe way to Repair the Problem: Count of records in a sub form displays #error when there are no returns:
How to Fix Count of records in a sub form displays #error when there are no returns with SmartPCFixer?
1. Download Error Fixer . Install it on your system. Click Scan, and it will perform a scan for your computer. The junk files will be shown in the list.
2. After the scan is done, you can see the errors and problems need to be repaired. Click Fix All.
3. The Repair part is done, the speed of your computer will be much higher than before and the errors have been removed. You can also use other functions in SmartPCFixer. Like dll downloading, junk file cleaning and print spooler error repair.
Related: How Can You Update & Download NVidia 6100, 6800 GS/XT Display Driver v.260.89 WHQL,Where to Download NVidia GeForce 8800 GT WHQL-certified driver v.196.21,How to Update & Download NVidia GeForce Go 7400 Display Driver v.260.19.12,[Solved] Download NVidia GeForce GTX 460M Driver v.331.82,Download NVidia Quadro Plex Model IV VGA Driver v.304.43 Certified,Way to Download RealTek RTL8100C(L) Driver v.5.01,Way to Download RealTek RTL8100E Drivers v.694,Way to Update & Download RealTek RTL8101L Auto Installation Program v.6.110 driver,Method to Update & Download RealTek RTL8111G PXE and RPL ROM code v.2.58 driver,How to Update & Download RealTek RTL8411B(N) Driver v.10.003,Best Way to Update & Download ASUS A53SV nVidia Graphics Driver v.188.8.131.5286,Method to Herunterladen ASUS K75VJ Intel Rapid Storage Technology Treiber v.184.108.40.2060,How Can You Update & Download ASUS CG8580 Intel Chipset Driver v.220.127.116.119,Method to Update & Download ASUS K41VD Intel INF Update Driver v.18.104.22.1685,Way to Update & Download ASUS Pro70T NB Probe v.3.0.0026 driver
Read More: Solution to Error: Create a copy of open workbook and prompt user to name the new workbook,How Can I Fix - Correlation matrix wihout VBA?,[Solution] CPU usage problems related to audiodg.exe in Win7,Troubleshoot:Count more than one word,Solution to Error: copy to hard drive when installing Encarta WA 2001 stops working after folder has been created on HD,Closing Internet Explorer causes error,Compare 2 Tables and Calculate the PROFIT Faster,Computer goes to Windows Boot Manager after Start,Connect to one of my network computer remotely when don't allow exception box Marked,computer locking up randomly