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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Field validation rule in VFP database

Status
Not open for further replies.

StewartUK

Programmer
Feb 19, 2001
860
GB
VFP9 SP2

I have a table of donations.

There are 2 date fields (one for GBP donations and one for foreign currency donations), at least one of which must have a date in it.

At the moment I have the rule
Code:
IIF(EMPTY(ForeignDate), NOT EMPTY(Date), .T.)

When trying to append a record, this is OK when field <Date> would not be empty, but an error is triggered when it is empty, but <ForeignDate> isn't.

Can someone advise me of what I should have as a rule or perhaps if I am misunderstanding rules or any other (relevant :)) suggestions.

Thanks,

Stewart
 
Ah yes, I guess I should have been able to work that one out!

Thanks,

Stewart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top