-
September 24th, 2013, 01:10 AM
#1
Access field problem with C++Builder Code
Hi
I have create a simple program with database in access.But i have a problem.
I have a field that i put numbers like that 18-03-0000969-000-00. So when the user try to insert a number like that on database i have a problem. My code for that field is this:
ADOTable1->FieldValues["AR_PAROXHSD"]= Edit2->Text ;
and the field on access is "text ", size:255, required:yes,
So when the user insert a new record and a number like 18-03-0000969-000-00 on database insert a number only 14 or 15 and i dont know why. can anyone help;
-
September 24th, 2013, 04:14 AM
#2
Re: Access field problem with C++Builder Code
Originally Posted by Leite333
... the field on access is "text ", size:255, required:yes,
So when the user insert a new record and a number like 18-03-0000969-000-00 on database insert a number only 14 or 15 and i dont know why. can anyone help;
Could you show the exact text (not just a "number like") the user inserts into editbox Edit2 and what value is really set into database?
And how do you check what value has been set?
Victor Nijegorodov
-
September 24th, 2013, 12:51 PM
#3
Re: Access field problem with C++Builder Code
The number as i say before is:
18-03-0000756-000-00
or
18-03-0000999-000-00
So because is a number with - i create a field on access that is text with length 255. Now my problem is that when the user puts that number in access i get 15 or 14 and i dont know why. The Number i want to put is 18-03-0000756-000-00 . So what field i need to create on database(access) and what code on c++
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
|