M mr moe Registered User. Local time Today, 10:41 Joined Jul 24, 2003 Messages 332 Dec 7, 2007 #1 Hi, I have a text box in a from for data entry, how do I disable a space. For example I don't want the user to have a space between charaters or before and after a charater. Thanks.
Hi, I have a text box in a from for data entry, how do I disable a space. For example I don't want the user to have a space between charaters or before and after a charater. Thanks.
boblarson Smeghead Local time Today, 03:41 Joined Jan 12, 2001 Messages 32,059 Dec 7, 2007 #2 In the text box's KEY PRESS event put this: If KeyAscii = 32 Then KeyAscii = 0
KeithG AWF VIP Local time Today, 03:41 Joined Mar 23, 2006 Messages 2,592 Dec 7, 2007 #3 open form1 in the exampe and try to input a name with a space Attachments db2.zip db2.zip 17.2 KB · Views: 107
boblarson Smeghead Local time Today, 03:41 Joined Jan 12, 2001 Messages 32,059 Dec 7, 2007 #4 KeithG said: open form1 in the exampe and try to input a name with a space Click to expand... Not real beneficial as it lets you type a space, or spaces, and then lets you know AFTER the fact. My code will keep you from typing a space at all.
KeithG said: open form1 in the exampe and try to input a name with a space Click to expand... Not real beneficial as it lets you type a space, or spaces, and then lets you know AFTER the fact. My code will keep you from typing a space at all.
KeithG AWF VIP Local time Today, 03:41 Joined Mar 23, 2006 Messages 2,592 Dec 7, 2007 #5 Yeah your way is better. Just Rub it in BOB!
boblarson Smeghead Local time Today, 03:41 Joined Jan 12, 2001 Messages 32,059 Dec 7, 2007 #6 KeithG said: Yeah your way is better. Just Rub it in BOB! Click to expand... Gotta take 'em while I can get 'em Keith. You are leaving me fewer things to correct and I'm starting to feel not needed
KeithG said: Yeah your way is better. Just Rub it in BOB! Click to expand... Gotta take 'em while I can get 'em Keith. You are leaving me fewer things to correct and I'm starting to feel not needed
M mr moe Registered User. Local time Today, 10:41 Joined Jul 24, 2003 Messages 332 Dec 7, 2007 #7 boblarson said: In the text box's KEY PRESS event put this: If KeyAscii = 32 Then KeyAscii = 0 Click to expand... Thanks Great Advice. This worked very good.
boblarson said: In the text box's KEY PRESS event put this: If KeyAscii = 32 Then KeyAscii = 0 Click to expand... Thanks Great Advice. This worked very good.
boblarson Smeghead Local time Today, 03:41 Joined Jan 12, 2001 Messages 32,059 Dec 7, 2007 #8 Happy to help! Glad that we could help.