|
-
Jan 23rd, 2002, 10:22 AM
#1
Thread Starter
Lively Member
Text box text adding extra space at end when saving to dB
This is happening on only one out of about 20 forms that I have created...and I cannot pinpoint the reason for it...but would be interested in a possible solution.
I have appx. five text fields that are adding a space to the end of the string.
For example, I get some data like this: "myname "
See how there is a space at the end of the letter e? It is only occuring on this one form. Any ideas on how to get rid of this? Would a trim do the trick? Thanks in advance.
TempDyna.AddNew
TempDyna("User_name") = ConWriteID
TempDyna("F_name") = TxtFName.Text
TempDyna("L_name") = TxtLname.Text
TempDyna("Buyer_cd") = TxtUserCode.Text
TempDyna("admin_yn") = chkCWadmin.Value
TempDyna("Term_id") = TxtTermId.Text
TempDyna("ofc_symbol") = TxtOfficeSymbol.Text
TempDyna.LockEdits = False
TempDyna.Update
-
Jan 23rd, 2002, 10:25 AM
#2
Hyperactive Member
As you said, a trim will do the trick:
TempDyna.AddNew
TempDyna("User_name") = ConWriteID
TempDyna("F_name") = trim(TxtFName.Text)
TempDyna("L_name") = trim(TxtLname.Text)
TempDyna("Buyer_cd") = trim(TxtUserCode.Text)
TempDyna("admin_yn") = chkCWadmin.Value
TempDyna("Term_id") = trim(TxtTermId.Text)
TempDyna("ofc_symbol") = trim(TxtOfficeSymbol.Text)
TempDyna.LockEdits = False
TempDyna.Update
Luc,
-
Jan 23rd, 2002, 10:27 AM
#3
Fanatic Member
Trim will do it.
Check that the .Text attributes are empty on the saved form.
-
Jan 23rd, 2002, 10:40 AM
#4
Thread Starter
Lively Member
Found my problem
For some reason I had set all those text boxes to = " " instead of just "" when the user wanted to add a new user. Geez...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|