Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run macro if field is null

Status
Not open for further replies.

ncvdac

Programmer
Oct 30, 2001
7
US
I am trying to write a macro that runs another macro based on a field being null. I cannot figure out how to check for an empty field. IsBlank does not work.

My Formula:
(LICENSE.LicenseSta = 'Canc') and (LICENSE.LicenseCan ='' )

Please help!!!

Thanks,
Dan
 
What type of field is your LICENSE.LicenseCan ?? If it is boolean, you can test it for 'yes' or 'no' but I do not believe it has an "empty" property.

Sue Sloan
XpertSS.com
 
Thanks for replying. License.LicenseCan is a date field.
 
I just tested this in a macro run command, and you can compare a date field this way:

datefieldname = ''

where the '' is two single quotes with no space between them.

In my testing, IsBlank(datefieldname) also works correctly. I am using Approach 9.7.

Sue Sloan
XpertSS.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top