I Have one Table named of "User" with following Column:
ID as PK Autonumber and Name, And a form following with text box
ID and Name All text box is unbound. when ID text box is updated with User's table id value its shows the name against the entered ID in the Unbound Name text box which ID is already exist in “User” table. If entered ID is not valid means not exist in table “User” then the Unbound Name text box Shows “Invalid User or My error message” and cursor setfocus to ID text box.
Example: Data already Exist in User table is
ID Name
1 Debashish Mahonta
2 Shajib Mahonta
3 Banna Das
When I enter 1 or 2 or 3 in form ID text box and press enter, the unbound text box shows the name "Debashish Mahonta for "Shajib Mahonta for 2" and "Banna Das for 3". But If I enter 0 or 4 or 5 or other value that not exist in user table then the unbound Name text box shows “invalid User” or My custom message and cursor setfocus to ID text box. How can I do it.
ID as PK Autonumber and Name, And a form following with text box
ID and Name All text box is unbound. when ID text box is updated with User's table id value its shows the name against the entered ID in the Unbound Name text box which ID is already exist in “User” table. If entered ID is not valid means not exist in table “User” then the Unbound Name text box Shows “Invalid User or My error message” and cursor setfocus to ID text box.
Example: Data already Exist in User table is
ID Name
1 Debashish Mahonta
2 Shajib Mahonta
3 Banna Das
When I enter 1 or 2 or 3 in form ID text box and press enter, the unbound text box shows the name "Debashish Mahonta for "Shajib Mahonta for 2" and "Banna Das for 3". But If I enter 0 or 4 or 5 or other value that not exist in user table then the unbound Name text box shows “invalid User” or My custom message and cursor setfocus to ID text box. How can I do it.