Hi All,
I have created a form that adds a new record to a table. One of the fields in the form is call Job Number. The new number entered in this field must be greater than or equal to the last number used. The number does not have to be I have come up with a simple query to determine the maximum number last used.
My delima is how to use this query to validate the number being entered into the form's field. Any help would be appreciated.
I have created a form that adds a new record to a table. One of the fields in the form is call Job Number. The new number entered in this field must be greater than or equal to the last number used. The number does not have to be I have come up with a simple query to determine the maximum number last used.
Code:
SELECT Max(tblCostarJobMaster.JobNumber) AS MaxJob
FROM tblCostarJobMaster;
My delima is how to use this query to validate the number being entered into the form's field. Any help would be appreciated.