CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2000
    Location
    Belgium, Bruges
    Posts
    146

    insert a float (SQL 7.0)

    hi,

    This may be a dumb question, but i have the following problem:

    i have a table with 5 fields. When i do the following: insert into table1 values('String','string',99,99,'string', 'string') i get the error saying that i have to much values. This because he counts the 99,99 for two. How to fix this??

    Thanx


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: insert a float (SQL 7.0)

    Assign 99,99 to var and insert this var

    dim MyValue as double

    SQL = "insert into table1 values('String','string'," & MyValue & ",'string', 'string')"

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured