Text box doesn't accept changes... 
Author Message
 Text box doesn't accept changes...

When using the following addnew method

            With data1.recordset
                    .addnew
                    .fields (etc....)
                    .update
                    .movelast
        End with

Everything inputs fine.  The problem is that when I'm reviewing the
records, if I attempt to add or change a text box in the record, it acts
as though it is "full" of data to the allowed capacity - even though it
appears to be empty.

If I double click on the box, the blue overwrite field appears over the
entire box - as if it's filled to capacity already.

Text boxes with the 'filled already' problem changes from record to
record,  and may just be one text box or a few boxes -or all - there's
no 'specific - consistent' problem boxes.
One record may have no problems at all - any and all text boxes can be
changed/updated  - but the next record may have several text boxes that
act as if they're already filled to capacity.

Any thoughts?  Any and all help will be appreciated -  here or Email is
fine.

Thanks.

John



Sat, 06 Jan 2001 03:00:00 GMT  
 Text box doesn't accept changes...
Sounds like, for whatever reason, you're filling those textboxes with
long strings of space characters. Assuming the textbox is bound directly
to a data control, that means the database field itself contains a long
string of space characters.

If you want to keep the textbox bound, you can go into the database and
clean up the fields with the extraneous spaces. You could, though I
haven't tried this so I don't know what all the side-effects will be,
put something in the box's Change event like:

   Private Sub TextBox1_Change()
     With TextBox1
       .Text = Trim$(.Text)
     End With
   End Sub

Also, before the data control updates the database, you can use its
Validate event to trim extra space characters.

Quote:

> When using the following addnew method

>             With data1.recordset
>                     .addnew
>                     .fields (etc....)
>                     .update
>                     .movelast
>         End with

> Everything inputs fine.  The problem is that when I'm reviewing the
> records, if I attempt to add or change a text box in the record, it acts
> as though it is "full" of data to the allowed capacity - even though it
> appears to be empty.

> If I double click on the box, the blue overwrite field appears over the
> entire box - as if it's filled to capacity already.

> Text boxes with the 'filled already' problem changes from record to
> record,  and may just be one text box or a few boxes -or all - there's
> no 'specific - consistent' problem boxes.
> One record may have no problems at all - any and all text boxes can be
> changed/updated  - but the next record may have several text boxes that
> act as if they're already filled to capacity.

> Any thoughts?  Any and all help will be appreciated -  here or Email is
> fine.

> Thanks.

> John



Sat, 06 Jan 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. edit boxes doesn't accept japan characters

2. rotated text box text doesn't print

3. text box text won't change

4. Combo Box Change Event Doesn't Work

5. VB5 doesn't accept VC++ DLL: please help

6. DBGrid doesn't accept recordset

7. VB doesn't accept String functions

8. Rich Text Box Workaround Doesn't work

9. Changing control name of button doesn't change event name to be the same

10. Label Caption Doesn't Change When Changed

11. Only Accept Numbers in Text Box

12. Code to change all text box's on a form to Read Only

 

 
Powered by phpBB® Forum Software