PDA

Click to See Complete Forum and Search --> : Validating on tab


nutstretch
Jul 31st, 2000, 01:27 PM
Hi I have been struggling with this for a few weeks now all suggestions do not seem to work. I am writing a program which validates well on the return key but as many users especially experienced one like to use tab and therefore go though my program with no validation, i want to validate on tab too or disable it. I have tried the keyascii for tab which is 9 but this does not seem to work. I have tried validation on a lost focus but just got into a messagebox hell with everytime you left a box with nothing in it threw up a messagebox good butwhen you tried to set the focus back to the original text box you got another lostfocus empty box messagebox from the one it had just left. I have tried vbtab but thast did noty seem to work and tried chr(9) with no success. Please oh people with brains and exquisit knowledge help me out here

nuts

Patrice Bourdages
Jul 31st, 2000, 09:23 PM
I would try posting this one to the "General" area... I've experienced this problem today to. Will look forward to those "guru's" answers. I also tried the lost_focus and it seems to loop back... Quite confusing!!!

Sincerely,

Patrice :-)