473,468 Members | 1,345 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Set default value as blank for calculated field

72 New Member
Hi,

Can anyone think of a way around this please?

If the field [total mins] is blank (because the task hasnt finished yet) It sets the field as NO.

IIf(([total mins]<=1440) And ([priority]=3),"YES","NO")

Ideally I want the field to remain blank until the end time is entered, giving me the [total mins] Then if its less than 1440 it will return YES, if its more, it will return NO. Apart from this, it works fine.

I have tried all day with this one and searched and searched but cannot seem to crack it.

Thanks all in advance

Gareth
Apr 16 '11 #1
2 3072
TheSmileyCoder
2,322 Recognized Expert Moderator Top Contributor
I suspect a nested IIF should suffice for your needs.
Expand|Select|Wrap|Line Numbers
  1. IIF(Isnull([Total Mins),"",IIf(([total mins]<=1440) And ([priority]=3),"YES","NO"))
Apr 16 '11 #2
Gareth Jones
72 New Member
This works perfectly. Thank you very much.
Apr 17 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: garyusenet | last post by:
Using VB Express and SQL. I have an sql database. what function gives me todays date and time? and do i enter it in the 'default' property for the column in the database? i've tried now()...
6
by: carmela_wong | last post by:
Hello all, I am trying to set the default value of a combo box to "USA" which does not work although I have entered this in the Default Value property of the control. The combo box shows the...
4
by: erick-flores | last post by:
Hello I am trying to setup a default value for a field in a form. The field is a text box. I need to setup the default value to: 0.000. And whenever the user is trying to enter a value for this...
1
by: Olaf Rabbachin | last post by:
Hi folks, I'm looking for a way of retrieving the default-value of a table's field within an Access 2003 MDB. Any hints on how to accomplish this from ASP.Net? Thanks, Olaf -- My .02:...
2
by: sparks | last post by:
I am trying to set the default value on a forms field to the filter that I am passing to the form. The filter works fine but the field comes up blank. So I put in a default value and it works...
4
by: rczuba | last post by:
Problem: Creating a Default Value for a field in a subform when a field in the subform & form match. I'm trying to create a payroll database for a small home business that I have that has had...
2
rsmccli
by: rsmccli | last post by:
Is there any benefit to having 0 instead of null as a default value for combobox/lookup fields? Just wondering because I find the default 0s annoying and am thinking about going through and deleting...
1
by: klausdh | last post by:
Hi all, I am just about to migrate a database from mdb to adp format - and experienced a real difficulty in retrieving a table field's default value by VBA code (using the ADODB 2.8 Library). In...
3
by: viki1967 | last post by:
Hi all. I have this: <input type="text" name="agg" size="30" value="---" readonly> <select size="1" name="provv" onchange="var cc = this.options.value;...
1
by: hannoudw | last post by:
@Jim you told me before that if i put code in the OnCurrent event of the form; then it would get executed for the current detail line whenever i change from one row to another. I have a Continuous...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.