Seems to be a trend.
Using >=Now() in a validation rule for a date. Trouble is it won't let you enter todays date if you do something like that.
So, don't use Now(), use Date(). Then it'll work.
Promise.
Just stuff I find interesting. Might be IT, might be baseball, might be a chicken, who knows...
Seems to be a trend.
Using >=Now() in a validation rule for a date. Trouble is it won't let you enter todays date if you do something like that.
So, don't use Now(), use Date(). Then it'll work.
Promise.
Again, the designer knows this because she spoke to the client about it and found out. For sure. Can I stress that this step is really, really important in all of this? Thanks.Here's the field properties:
Note the validation here.Here's the Planned Date Out field properties:
It's possible, although unlikely, that a different date might need to be entered. A container might be fortgotten about or not entered for some reason. Because of that the validation rule has been set to accept any date from 7 days before today until tomorrow - a container might sometimes be logged on the system the day before it's actually present on site.
Do I need to tell you how she knows this?
This shows that we're validating the date to be between today-43800 days and today-3000 days. That's days OK - so I got the calculator out and figured out that 120 years old was 365 * 120 - easy as that.
This allows you to set a range of valid dates for, say, a date of birth if you need someone to be at least a certain age. The -43800 days bit means someone can't enter 1645 by mistake!
I've also set the Required property to Yes. This means that they user has to enter a valid date of birth. They aren't allowed to leave it blank. Take a bit of care with required properties though: if there's any chance that the client might not need to enter that field for any item then don't set required to yes!
Delivery Dates:
You might also need to set a delivery date (or a return date for a book or something similar).
Take a look at this for some ideas:
This time I'm setting a validation rule of between Date()+1 (i.e. tomorrow) and Date()+35, which is 35 days time. That's the set window I've got for delivering the product someone's ordered. The delivery date field has to be set within that window.
I've also set a default value here. My standard delivery date is tomorrow because the company does a next day delivery service. It will save time and effort having to type in the date each time if most of the deliveries will be made the next day.
For a library database I might set the default value for the return date to be Date()+14 for example - depending what the standard loan period is.
You can overwrite a default value, but it saves some time entering things that are going to be standard for many records if you use a default value.
Of course, you could get really clever and set up a calendar control on a form to make entering dates even easier - just like you see on the web for hotel booking or buying train tickets for example...
There's all sorts of good stuff here, mainly aiming at my Applied A Level classes.
Use tags to help find your way around - it makes life so much easier you know. The tags are down at the bottom right. Unit 1 or Unit 10 are probably the best tags to look for (Unit 1 is ICT and Society so that tag will work for that as well).
> That Blue Square Thing is somewhere you might be looking for.