Peter Paul
Registered User.
- Local time
- Today, 05:35
- Joined
- Jan 1, 2000
- Messages
- 82
Greetings,
I am having a difficult time with something which should, I think, be pretty easy. I have a subform with three fields. Focus should only go to the third field if the data in the second field meets the criteria, else it should tab to a new record on the first field.
I have been trying this code, and variations on it, but the tab continues to move to the last field regardless. I do have the tab property set to NO for the third field.
If Me.secondfield <= 15 Then Me.Lastfield.setfocus
IF Me.secondfield > 15 then Me.Firstfield.setfocus
I don't think I should even need the second line of code, but for some reason it is not working properly.
Thank you for any assistance,
Peter Paul
[This message has been edited by Peter Paul (edited 04-03-2001).]
I am having a difficult time with something which should, I think, be pretty easy. I have a subform with three fields. Focus should only go to the third field if the data in the second field meets the criteria, else it should tab to a new record on the first field.
I have been trying this code, and variations on it, but the tab continues to move to the last field regardless. I do have the tab property set to NO for the third field.
If Me.secondfield <= 15 Then Me.Lastfield.setfocus
IF Me.secondfield > 15 then Me.Firstfield.setfocus
I don't think I should even need the second line of code, but for some reason it is not working properly.
Thank you for any assistance,
Peter Paul
[This message has been edited by Peter Paul (edited 04-03-2001).]