Access field problem with C++Builder Code
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Access field problem with C++Builder Code

  1. #1
    Join Date
    Mar 2011
    Location
    Greece
    Posts
    26

    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;

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,009

    Re: Access field problem with C++Builder Code

    Quote Originally Posted by Leite333 View Post
    ... 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

  3. #3
    Join Date
    Mar 2011
    Location
    Greece
    Posts
    26

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center