DanBrill Posted December 13, 2002 Posted December 13, 2002 Hi, I have 2 global date fields, MinDate and MaxDate, that I'd like to leave empty when my script is done. I'm using Clear [select,"MinDate"] <-- Select entire contents option is checked But they are never cleared. Trying to set them to "" doesn't work either. What am I doing wrong. Thanks for any help, Dan
SteveB Posted December 14, 2002 Posted December 14, 2002 Instead use: SetField(MinDate,TextToDate("")) It converts the null value into a date equivalent.
BobWeaver Posted December 14, 2002 Posted December 14, 2002 The Clear command only works if the field is on the current layout when you perform the script. Also, the field has to be formatted to allow entry. Steve's solution using a Set Field command is the reliable way to do it.
Recommended Posts
This topic is 8018 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now