+ Reply to Thread
Results 1 to 5 of 5

Double value insert into DB

  1. #1
    Registered User
    Join Date
    08-13-2008
    Location
    Netherlands
    Posts
    4

    Double value insert into DB

    Hello,

    I am trying to insert some values into my database. This database contains a table which has 2 fields in it with data-type 'double'.

    Now I am trying to insert my numeric value (with 3 decimals) into this double-field with the following:

    Please Login or Register  to view this content.
    As you can see I am converting the numeric value from the cell to a double value and then insert it in my database.

    I get the following query-string;

    INSERT INTO arprsw (artcode,crdnr,datum,user_id,verkp_verp,inkp_verp) VALUES ('1012.0290',' 570','2008-08-13','JOOP',-1,3,85)

    As you can see the variabel 'ldbLinkp_verp' contains the value '3,85' which makes the database see this as 2 values.
    By this I get the following error which I just can't seem to resolve;
    "Insert value does not match column list"

    Can anybody help me with this issue?

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Not sure because I use . as decimal separator, maybe
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    08-13-2008
    Location
    Netherlands
    Posts
    4
    No That gave the same ugly output
    When I input the numer with a . instead of a comma the db also gives an error.

    Besides, these querymethods also don't work ;

    INSERT INTO arprsw (inkp_verp) VALUES (3,25)
    INSERT INTO arprsw (inkp_verp) VALUES ('3,25')
    INSERT INTO arprsw (inkp_verp) VALUES ("3,25")
    INSERT INTO arprsw (inkp_verp) VALUES (`3,25`)
    INSERT INTO arprsw (inkp_verp) VALUES (3.25)
    INSERT INTO arprsw (inkp_verp) VALUES ('3.25')
    INSERT INTO arprsw (inkp_verp) VALUES ("3.25")
    INSERT INTO arprsw (inkp_verp) VALUES (`3.25`)
    Last edited by burrug; 08-13-2008 at 10:16 AM.

  4. #4
    Registered User
    Join Date
    08-13-2008
    Location
    Netherlands
    Posts
    4
    Could it be that there may be a function which is supposed to be used within the query? I already went out looking for it but I couldn't found anything.

    Can somebody please help me?

  5. #5
    Registered User
    Join Date
    08-13-2008
    Location
    Netherlands
    Posts
    4
    I have looked for a function and I couldn't find anything. The function CDbl in VBa doesn't have any effect on the inserted number.

    I have contacted Pervasive with the issue.

    Please react if you have an answer to my solution

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1