tab key

  • Thread starter sobeit via AccessMonster.com
  • Start date
S

sobeit via AccessMonster.com

how can i be able to use tab key to indent entry instead of going next field

thank you in advance
 
A

Allen Browne

Access does not support the display of the tab character in text boxes, so
you would need to fudge it by trapping the tab character (e.g. KeyDown event
of text box), and replacing it with say 4 spaces.

This example might help:
Insert characters at the cursor
at:
http://allenbrowne.com/func-InsertChar.html
 
S

sobeit via AccessMonster.com

thanks mr allen

i got this code

If KeyCode = 9 Then
KeyCode = 32

but how can i repeat the space 5 times

thank you
 
S

sobeit via AccessMonster.com

thanks mr allen

i got this code

If KeyCode = 9 Then
KeyCode = 32

but how can i repeat the space 5 times

thank you
 
A

Allen Browne

That's why I referred you to the article that inserts the additional
characters.
 
S

sobeit via AccessMonster.com

sir i copied ur code to my field but a compile error occur

sub or function not defined

Allen said:
That's why I referred you to the article that inserts the additional
characters.
thanks mr allen
[quoted text clipped - 21 lines]
 
A

Allen Browne

Which line has the compile error?

Did you copy the InsertAtCursor() function into a standard module?

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

sobeit via AccessMonster.com said:
sir i copied ur code to my field but a compile error occur

sub or function not defined

Allen said:
That's why I referred you to the article that inserts the additional
characters.
thanks mr allen
[quoted text clipped - 21 lines]
thank you in advance
 
S

sobeit via AccessMonster.com

sorry sir i forgot

now its perfectly working fine

thank you so much sir allen

Allen said:
Which line has the compile error?

Did you copy the InsertAtCursor() function into a standard module?
sir i copied ur code to my field but a compile error occur
[quoted text clipped - 8 lines]
 
Top