Input Mask & Cursor Placement for Data Entry
Input Mask & Cursor Placement for Data Entry
(OP)
Hi,
I am trying to create an input mask to facilitate data entry. The field value begins with the literal "DID" and is immediately followed by manditory entry of 5 digits, then an optional decimal point, and lastly two more optional digits. For example DID00001, DID00002, DID00005, DID00005.1, and so on. Based upon the tutorials, I have came up the following mask:
"DID"!#####C99
What I would like to have happen is that when a user tabs into the field, that the cursor is placed immediately after the literal text, but I have been unsuccessful so far. I have tried moving the exclamation point to the very beginning of the mask string, as well as some other variations, to no avail.
I realize that I could change the field to a number and paste DID to the front, but I don't have any macro/vb skills, and also do not wish to incur a potential workload of having to update every form & relationship connected to it.
Any solutions, or am I trying to swim upstream? Thanks
I am trying to create an input mask to facilitate data entry. The field value begins with the literal "DID" and is immediately followed by manditory entry of 5 digits, then an optional decimal point, and lastly two more optional digits. For example DID00001, DID00002, DID00005, DID00005.1, and so on. Based upon the tutorials, I have came up the following mask:
"DID"!#####C99
What I would like to have happen is that when a user tabs into the field, that the cursor is placed immediately after the literal text, but I have been unsuccessful so far. I have tried moving the exclamation point to the very beginning of the mask string, as well as some other variations, to no avail.
I realize that I could change the field to a number and paste DID to the front, but I don't have any macro/vb skills, and also do not wish to incur a potential workload of having to update every form & relationship connected to it.
Any solutions, or am I trying to swim upstream? Thanks
RE: Input Mask & Cursor Placement for Data Entry
CODE
RE: Input Mask & Cursor Placement for Data Entry
"Acquired Lands Files Scanning DB can't find the object 'ME'. If 'ME' is a new macro or macro group, make sure you hve saved it and that you have typed it's name correctly."
Do I need to place this code into a macro first and then call the macro?
RE: Input Mask & Cursor Placement for Data Entry
Try to skip (eliminate) Me. and make sure Text0 is actually the name of your field (which is probably not Text0)
Have fun.
---- Andy
RE: Input Mask & Cursor Placement for Data Entry
what you have to do is in the event tab click on the command button wit the 3 dots and the module will open and in the event
CODE
End Sub
add
CODE
Me.Text0.SelStart = 3
End Sub
RE: Input Mask & Cursor Placement for Data Entry
Thank you both for the assist,
Paula