Hide First 6 Digits in Textbox (1 Viewer)

whojstall11

Registered User.
Local time
Today, 10:08
Joined
Sep 7, 2011
Messages
94
I am trying to hide the first 6 digits in a textbox and only show the last for digits in a text box.

So far I a putting my code in the Format Format section in Property Sheet of a form. Its not seeming to work. What am I doing wrong?

Code:
 Left([Card Number],Len([Card Number])-6)
 

pbaldy

Wino Moderator
Staff member
Local time
Today, 10:08
Joined
Aug 30, 2003
Messages
36,140
I'd simply use a formula in a textbox, like:

=Right([Card Number], 4)

Or the Mid() function if it isn't always 4 digits.
 

whojstall11

Registered User.
Local time
Today, 10:08
Joined
Sep 7, 2011
Messages
94
Ok thank you that worked
 

whojstall11

Registered User.
Local time
Today, 10:08
Joined
Sep 7, 2011
Messages
94
Well I take it back is there a way I can still store all of the numbers in my table but only display the last for in form?
 

pbaldy

Wino Moderator
Staff member
Local time
Today, 10:08
Joined
Aug 30, 2003
Messages
36,140
Well I take it back is there a way I can still store all of the numbers in my table but only display the last for in form?

That would simply affect the display. You'd want to use a different form or textbox to enter the data.
 

whojstall11

Registered User.
Local time
Today, 10:08
Joined
Sep 7, 2011
Messages
94
It worked I end up making another column on my table then in my form I had it take the last four from my new column. (that the short explantation) Thanks.
 

pbaldy

Wino Moderator
Staff member
Local time
Today, 10:08
Joined
Aug 30, 2003
Messages
36,140
Glad you got it sorted out.
 

Users who are viewing this thread

Top Bottom