PC Review


Reply
Thread Tools Rate Thread

Clearing 1 or 2 characters in a field & not retype all the charact

 
 
=?Utf-8?B?bHV2MmJpa2Uy?=
Guest
Posts: n/a
 
      23rd May 2007
I have an Access 2003 DB that was put into place before I started this job.
I have very little experience in Access (all versions). any way, my users
enter a number in a box that they only have to enter part of the number and
click "find a document" button that displays the documents below. they like
that part, however what they don't like and they are wondering if i can fix
this part.... when they go into the box enter the whole number and pull up
the document, find what they want and than go back to that box where they put
the whole number in and just want to change the number say from 123456 to
123457 the box clears out and they have to retype the number in. they just
want to delete the 6 and replace it with 7. is that possible?

I don't know if this will help out, I have gone into the form design of the
DB and the box that the users put in the number in says "unbound" (without
the quotes). I am unsure of what "unbound" means.


--
Thank you,

 
Reply With Quote
 
 
 
 
=?Utf-8?B?bHV2MmJpa2Uy?=
Guest
Posts: n/a
 
      23rd May 2007
added information....
once the user places the cursor in the box the text that was already there
clears out. we don't want that to happen, we just want to take away a
character or two and place it with a character or two.
--
Thank you,



"luv2bike2" wrote:

> I have an Access 2003 DB that was put into place before I started this job.
> I have very little experience in Access (all versions). any way, my users
> enter a number in a box that they only have to enter part of the number and
> click "find a document" button that displays the documents below. they like
> that part, however what they don't like and they are wondering if i can fix
> this part.... when they go into the box enter the whole number and pull up
> the document, find what they want and than go back to that box where they put
> the whole number in and just want to change the number say from 123456 to
> 123457 the box clears out and they have to retype the number in. they just
> want to delete the 6 and replace it with 7. is that possible?
>
> I don't know if this will help out, I have gone into the form design of the
> DB and the box that the users put in the number in says "unbound" (without
> the quotes). I am unsure of what "unbound" means.
>
>
> --
> Thank you,
>

 
Reply With Quote
 
fredg
Guest
Posts: n/a
 
      23rd May 2007
On Wed, 23 May 2007 09:18:01 -0700, luv2bike2 wrote:

> I have an Access 2003 DB that was put into place before I started this job.
> I have very little experience in Access (all versions). any way, my users
> enter a number in a box that they only have to enter part of the number and
> click "find a document" button that displays the documents below. they like
> that part, however what they don't like and they are wondering if i can fix
> this part.... when they go into the box enter the whole number and pull up
> the document, find what they want and than go back to that box where they put
> the whole number in and just want to change the number say from 123456 to
> 123457 the box clears out and they have to retype the number in. they just
> want to delete the 6 and replace it with 7. is that possible?
>
> I don't know if this will help out, I have gone into the form design of the
> DB and the box that the users put in the number in says "unbound" (without
> the quotes). I am unsure of what "unbound" means.
>


And how does Access know that you wish to replace the last character
only, as opposed to, say, the third character?

Look up the SelStart property in VBA help.
If you always wish to place the cursor just before the 6th character,
then code the Control's Enter event:
Me.[ControlName].SelStart = 5

If it's always the last character to be replaced, then
Me.[ControlName].SelStart = Len([ControlName])-1

The above code ONLY works if you tab into the control. If the user
enters the control using the cursor, the cursor position will be
wherever the cursor was placed in the control.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 
Reply With Quote
 
=?Utf-8?B?bHV2MmJpa2Uy?=
Guest
Posts: n/a
 
      23rd May 2007
Fred,

Thank you for responding. However I am not sure where to find SelStart in
VBA. I am very new to Access and I am confused. I believe once i find the
line that you mentioned I will be able to correct this issue that my users
are having. I have an Access 2003 Dummies book and looked up Selstart and
its not there.

They usually will replace the last couple of characters, it could be the
last one or the last 2 or 3. they just don't want to retype the whole thing.
--
Thank you,



"fredg" wrote:

> On Wed, 23 May 2007 09:18:01 -0700, luv2bike2 wrote:
>
> > I have an Access 2003 DB that was put into place before I started this job.
> > I have very little experience in Access (all versions). any way, my users
> > enter a number in a box that they only have to enter part of the number and
> > click "find a document" button that displays the documents below. they like
> > that part, however what they don't like and they are wondering if i can fix
> > this part.... when they go into the box enter the whole number and pull up
> > the document, find what they want and than go back to that box where they put
> > the whole number in and just want to change the number say from 123456 to
> > 123457 the box clears out and they have to retype the number in. they just
> > want to delete the 6 and replace it with 7. is that possible?
> >
> > I don't know if this will help out, I have gone into the form design of the
> > DB and the box that the users put in the number in says "unbound" (without
> > the quotes). I am unsure of what "unbound" means.
> >

>
> And how does Access know that you wish to replace the last character
> only, as opposed to, say, the third character?
>
> Look up the SelStart property in VBA help.
> If you always wish to place the cursor just before the 6th character,
> then code the Control's Enter event:
> Me.[ControlName].SelStart = 5
>
> If it's always the last character to be replaced, then
> Me.[ControlName].SelStart = Len([ControlName])-1
>
> The above code ONLY works if you tab into the control. If the user
> enters the control using the cursor, the cursor position will be
> wherever the cursor was placed in the control.
> --
> Fred
> Please respond only to this newsgroup.
> I do not reply to personal e-mail
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clearing Hidden Characters Kirk P. Microsoft Access VBA Modules 2 6th Feb 2009 05:57 PM
Can I combine characters in Word 2003 - create a composite charact =?Utf-8?B?SnRyYWlu?= Microsoft Word Document Management 2 2nd May 2007 10:26 PM
Excel 2003 SP1: CopyFromRecordset error if field above 911 charact =?Utf-8?B?TmF0aGFuIEhvbG1lcw==?= Microsoft Excel Programming 0 6th Feb 2006 09:35 PM
Problem inserting text field with quotes and other special charact =?Utf-8?B?TGF2dQ==?= Microsoft Access External Data 0 12th Oct 2004 05:31 PM
how do I view the entire contents of a field w/ about 200 charact. =?Utf-8?B?QVZFTU9OMzI=?= Microsoft Access 2 12th Oct 2004 04:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:40 PM.