If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
What is the value of a blank field in a table?
In my program I have a field that sums up a couple date/time fileds. If one
of the time fields dont have a value in there when i try to sum it in my query it will give me an error.(#ERROR). How can i get around this problem? |
#2
|
|||
|
|||
If a field has no entry, its value is Null.
You should be able to sum a field that contains Nulls, e.g.: =DSum("MyField", "MyTable") If you try to add fields horizontally across a record, then you must use Nz() to substitute zero for null, e.g.: =Nz([Field1], 0) + Nz([Field2], 0) + ... -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "William" wrote in message ... In my program I have a field that sums up a couple date/time fileds. If one of the time fields dont have a value in there when i try to sum it in my query it will give me an error.(#ERROR). How can i get around this problem? |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Design help, please | SillySally | Using Forms | 27 | March 6th, 2005 04:11 AM |
Update Tables using forms | achett | Using Forms | 5 | January 28th, 2005 12:25 AM |
Access & OleDb - generating schema changes, problem with identity/counter fields. | Thomas Tomiczek [MVP] | Database Design | 9 | November 5th, 2004 10:32 AM |
Table Wizard Does Not Set Relationship if Foreign Key and Primary Key Name Do Not Match Exactly in Case. | HDW | Database Design | 3 | October 16th, 2004 03:42 AM |
Autonumber | Ally H. | General Discussion | 7 | August 27th, 2004 04:51 PM |