msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MaskedEdit

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax
Author Message
Ron



Joined: 04 Oct 2007
Posts: 201

PostPosted: Tue Nov 28, 2006 11:59 am    Post subject: MaskedEdit Reply with quote

Hi
I want to use the MaskedEdit box with 2 different formats,
1. (#####) ######
2. (####) #########
but store these in the same col of an Access DB, I have tried various ways
but all seem to hit problems, mostly with leading zero's which I need to keep
as this is for telephone numbers. No.1 for UK and No.2 for EU.

Can you help please ?






Ron

Archived from group: microsoft>public>vb>syntax
Back to top
View user's profile Send private message
Jan Hyde



Joined: 04 Oct 2007
Posts: 1211

PostPosted: Tue Nov 28, 2006 10:21 pm    Post subject: Re: MaskedEdit Reply with quote

Ron 's wild thoughts were
released on Tue, 28 Nov 2006 06:59:01 -0800 bearing the
following fruit:

>Hi
>I want to use the MaskedEdit box with 2 different formats,
>1. (#####) ######
>2. (####) #########
>but store these in the same col of an Access DB, I have tried various ways
>but all seem to hit problems, mostly with leading zero's which I need to keep
>as this is for telephone numbers. No.1 for UK and No.2 for EU.
>
>Can you help please ?

And what type of field are you storing it in? Only
string\char type fields will preserve formatting.





Jan Hyde (VB MVP)

--
Orgasm : The gland finale (Stan Kegel)
Back to top
View user's profile Send private message
Ron



Joined: 04 Oct 2007
Posts: 201

PostPosted: Wed Nov 29, 2006 2:27 pm    Post subject: Re: MaskedEdit Reply with quote

Hi Jan
I am using a Text Field, with an Input Mask, and I hoped to be able to
change the mask just before the vb data is sent to update the db. is this
possible or am I going about it the wrong way?

Ron

"Jan Hyde" wrote:

> Ron 's wild thoughts were
> released on Tue, 28 Nov 2006 06:59:01 -0800 bearing the
> following fruit:
>
> >Hi
> >I want to use the MaskedEdit box with 2 different formats,
> >1. (#####) ######
> >2. (####) #########
> >but store these in the same col of an Access DB, I have tried various ways
> >but all seem to hit problems, mostly with leading zero's which I need to keep
> >as this is for telephone numbers. No.1 for UK and No.2 for EU.
> >
> >Can you help please ?
>
> And what type of field are you storing it in? Only
> string\char type fields will preserve formatting.
>
>
>
>
>
> Jan Hyde (VB MVP)
>
> --
> Orgasm : The gland finale (Stan Kegel)
>
>

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group