Correct population of a textbox

P

Peter

Hi again...:)..i am almost ready with by database..just fixing small issue
here and there...

How do i ensure that a textbox gets correctly populated...
i.e i have noticed that it is possible to enter the data with two or three
empty spaces in the beginning of the textbox..

Thanks again!
 
F

fredg

Hi again...:)..i am almost ready with by database..just fixing small issue
here and there...

How do i ensure that a textbox gets correctly populated...
i.e i have noticed that it is possible to enter the data with two or three
empty spaces in the beginning of the textbox..

Thanks again!

What does correctly populated mean?
If all you wish to do is assure that the data in that particular field
does not have any leading spaces, code that control's AfterUpdate
event:
Me.[ControlName] = LTrim(Me.[ControlName])
 
P

Peter

Thanks Fred, works prefectly!

fredg said:
Hi again...:)..i am almost ready with by database..just fixing small issue
here and there...

How do i ensure that a textbox gets correctly populated...
i.e i have noticed that it is possible to enter the data with two or three
empty spaces in the beginning of the textbox..

Thanks again!

What does correctly populated mean?
If all you wish to do is assure that the data in that particular field
does not have any leading spaces, code that control's AfterUpdate
event:
Me.[ControlName] = LTrim(Me.[ControlName])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top