User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Bug in passing numerical values to DB?

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Location
    Oregon, USA
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Bug in passing numerical values to DB?

    "INSERT INTO CUSTOMER (ACCOUNT) VALUES (value( "Counter" ))" does not work - sysntax error. I am trying to pass a value from the counter to a DB. My counter generates account numbers when new customer signs in. Maybe there is a better way to store account numbers in DB?

  2. #2
    No Products Registered

    Join Date
    Jul 2006
    Location
    Oregon, USA
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Bug in passing numerical values to DB?

    "INSERT INTO CUSTOMER (ACCOUNT) VALUES (value( "Counter" ))" does not work - sysntax error. I am trying to pass a value from the counter to a DB. My counter generates account numbers when new customer signs in. Maybe there is a better way to store account numbers in DB?

  3. #3
    No Products Registered

    Join Date
    Jul 2006
    Posts
    144
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bug in passing numerical values to DB?

    "syntax error" means your expression is malformed, as we observed above. You made the same mistake you did before.

    "INSERT INTO CUSTOMER (ACCOUNT) VALUES" is a literal string, in double quotes, while value( "Counter" ) is an MMF expression, so it *must not* be in double quotes. Also, you need to convert the MMF number into an MMF string. in other words:

    "INSERT INTO CUSTOMER (ACCOUNT) VALUES " + str$(value( "Counter" )))

  4. #4
    No Products Registered

    Join Date
    Jul 2006
    Posts
    144
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bug in passing numerical values to DB?

    "syntax error" means your expression is malformed, as we observed above. You made the same mistake you did before.

    "INSERT INTO CUSTOMER (ACCOUNT) VALUES" is a literal string, in double quotes, while value( "Counter" ) is an MMF expression, so it *must not* be in double quotes. Also, you need to convert the MMF number into an MMF string. in other words:

    "INSERT INTO CUSTOMER (ACCOUNT) VALUES " + str$(value( "Counter" )))

  5. #5
    No Products Registered

    Join Date
    Jul 2006
    Location
    Oregon, USA
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bug in passing numerical values to DB?

    nice try........you have extra ")" at the end - here comes SYNTAX ERROR. but even after it removed - still no data goes to DB. and, YES, I do have a communication between MMF and DB.

  6. #6
    No Products Registered

    Join Date
    Jul 2006
    Location
    Oregon, USA
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bug in passing numerical values to DB?

    nice try........you have extra ")" at the end - here comes SYNTAX ERROR. but even after it removed - still no data goes to DB. and, YES, I do have a communication between MMF and DB.

  7. #7
    No Products Registered

    Join Date
    Jun 2006
    Posts
    625
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bug in passing numerical values to DB?

    "INSERT INTO CUSTOMER (ACCOUNT) VALUES ("+str$(value( "Counter" ))+")"

    Keep in mind that you have to create a string, you could easily test expressions by displaying them in any text object. The strings have to be in single quotes most of the time (depending on the database, but it's always better to use them)

  8. #8
    No Products Registered

    Join Date
    Jun 2006
    Posts
    625
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bug in passing numerical values to DB?

    "INSERT INTO CUSTOMER (ACCOUNT) VALUES ("+str$(value( "Counter" ))+")"

    Keep in mind that you have to create a string, you could easily test expressions by displaying them in any text object. The strings have to be in single quotes most of the time (depending on the database, but it's always better to use them)

  9. #9
    No Products Registered

    Join Date
    Jul 2006
    Location
    Oregon, USA
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bug in passing numerical values to DB?

    Corentin, you are now officially my HERO!...your suggestion helped. Thanks a lot.

  10. #10
    No Products Registered

    Join Date
    Jul 2006
    Location
    Oregon, USA
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bug in passing numerical values to DB?

    Corentin, you are now officially my HERO!...your suggestion helped. Thanks a lot.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Input Numerical value with the keyboard
    By ClickJoe in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 2nd July 2013, 12:47 PM
  2. Convert standard date into numerical form
    By oasuke in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 9th November 2012, 03:49 PM
  3. [Bug] Numerical Counter + Semi Trans.
    By ProdigyX in forum SWF/Flash Export Module Version 2.0
    Replies: 1
    Last Post: 22nd October 2012, 08:50 AM
  4. Passing FlashVars to embedded SWF
    By AngelicTech in forum SWF/Flash Export Module Version 2.0
    Replies: 7
    Last Post: 30th July 2011, 09:27 AM
  5. alpha numerical ordering wit ini++ ?
    By BrashMonkey in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 27th May 2010, 07:25 AM

Posting Permissions

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