Unbound form and two unbound text boxes:
z_ctrl_txt_Hist oryLogVol
z_ctrl_txt_Hist oryLogPage
The form is unbound as there must be validation steps performed against the other data entries and there is a "sign-off" PIN that the tech must enter to confirm that the information has been reviewed.
In the lab there are multiple logbooks,hence the LogVol,
and ofcourse, the pages therein, LogPage
It makes no sense to have either one or the other filled unless they are both filled (a volume without a page or a page without a volume... either way , useless).
So this is what I've been using to check to see if both are filled:
This works like a charm and I've used this type of construct many times to check that numeric-label are set and so forth...
The question is, is there a better way?
z_ctrl_txt_Hist oryLogVol
z_ctrl_txt_Hist oryLogPage
The form is unbound as there must be validation steps performed against the other data entries and there is a "sign-off" PIN that the tech must enter to confirm that the information has been reviewed.
In the lab there are multiple logbooks,hence the LogVol,
and ofcourse, the pages therein, LogPage
It makes no sense to have either one or the other filled unless they are both filled (a volume without a page or a page without a volume... either way , useless).
So this is what I've been using to check to see if both are filled:
Code:
If (Me!z_ctrl_txt_HistoryLogVol & "" = "") Xor (Me!z_ctrl_txt_HistoryLogPage & "" = "") Then 'naughty naughty code here
The question is, is there a better way?
Comment