My table is defined as follows :
Reference text Primary Key
StartDate date Primary Key
EndDate date can be null
I currently have a row with :
Reference = ABC,
StartDate = 1st Jan 2009, and
EndDate = 1st November 2009.
I want my Form to allow me to enter a 2nd row with
Reference = ABC, and
StartDate greater than or equal to the EndDate above.
If I enter an EndDate prior to this, then I want to display a meaningful message.
This should be the case for all References, not just ABC.
Should I do so as a Validation Rule in the table design
Or an ‘on enter’ event in the Form design ?
And what would the coding look like ?
Many thanks
Reference text Primary Key
StartDate date Primary Key
EndDate date can be null
I currently have a row with :
Reference = ABC,
StartDate = 1st Jan 2009, and
EndDate = 1st November 2009.
I want my Form to allow me to enter a 2nd row with
Reference = ABC, and
StartDate greater than or equal to the EndDate above.
If I enter an EndDate prior to this, then I want to display a meaningful message.
This should be the case for all References, not just ABC.
Should I do so as a Validation Rule in the table design
Or an ‘on enter’ event in the Form design ?
And what would the coding look like ?
Many thanks
Comment