Ashfaque
Search Beautiful Girls from your town for night
- Local time
- Tomorrow, 02:06
- Joined
- Sep 6, 2004
- Messages
- 897
I have a strange question.
I have shifted my BE from Access to SQL Server and as far it has no issue but strange thing I noticed. There is a text box on my form where the position of higher management like General Manager, Operations Manager etc recorded. This field data I have taken on my report and in OnLoad event of report I am just checking if the textbox data is "General Manager" then....so on.
Unfortunately, when I debug the code the value in text box is reading as "General Manager " and hence it is not matching with my condition to be true. I checked length of nchar in my server table it was 20.
How to sort this out? Bcz when I am trying to reduce the field length of server tbl, it says I need to drop the table and again create the table but this way I will lose my data in it.
Another thing, there will be different positions to store in that text box so it is not necessary the length of field should be fixed. Suppose if the data is “HR” so it will consider “HR “ which will then not satisfy the if condition.
I don’t know how to tackle this issue. Can anyone of you please guide me.
I have shifted my BE from Access to SQL Server and as far it has no issue but strange thing I noticed. There is a text box on my form where the position of higher management like General Manager, Operations Manager etc recorded. This field data I have taken on my report and in OnLoad event of report I am just checking if the textbox data is "General Manager" then....so on.
Unfortunately, when I debug the code the value in text box is reading as "General Manager " and hence it is not matching with my condition to be true. I checked length of nchar in my server table it was 20.
How to sort this out? Bcz when I am trying to reduce the field length of server tbl, it says I need to drop the table and again create the table but this way I will lose my data in it.
Another thing, there will be different positions to store in that text box so it is not necessary the length of field should be fixed. Suppose if the data is “HR” so it will consider “HR “ which will then not satisfy the if condition.
I don’t know how to tackle this issue. Can anyone of you please guide me.