Results 1 to 8 of 8

Thread: Ms Flex grid query not working

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2003
    Posts
    509

    Ms Flex grid query not working

    I am sure i posted this before, but i cannot see it, so i guess not.

    Every time i try to create a query and show it on the ms flex grid i getting an error saying, ms flex grid does not support this type of bound operation.

    I am using a simple sql query-Now, i am not very good at sql in vb, its wierd compared to on Oracle.

    VB Code:
    1. strsql = "Select * from Invoice where Name = john smith;"

    i initially put speach marks around john smith but it would'nt let me do that.

    Any body know where i am going wrong?

  2. #2
    Fanatic Member
    Join Date
    Sep 2004
    Location
    Jakarta, Indonesia
    Posts
    818
    try this
    VB Code:
    1. strsql = "Select * from Invoice where [Name] = 'john smith';"

    u need to use single quote to search for string criteria and put [] bracket for preserve words..
    i think name isn't preserve words..but give it a try

    EDIT : RESERVED word not PRESERVED word. sorry
    Last edited by erickwidya; Nov 23rd, 2004 at 11:38 PM.

    1st NF - a table should not contain repeating groups.
    2nd NF - any fields that do not depend fully on the primary key should be moved to another table.
    3rd NF - there should be no dependency between non key fields in same table.
    - E. Petroutsos -


    eRiCk

    A collection of "Laku-abis" Ebook, Permanent Residence

    Access Reserved Words, a Classic Form Bug, Access Limitation, Know run Process and the Lock they hold in, Logging User Activity in MSSQL,
    Kill Database Processes

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2003
    Posts
    509
    Cheers, i was thinking of trying the ' ' section. I can't try it till i get home, but thanks for confiriming it.

    A question though, what do you mean by preserve?

  4. #4
    Fanatic Member
    Join Date
    Sep 2004
    Location
    Jakarta, Indonesia
    Posts
    818
    i described preserve word as word that already been 'declared' in it (VB, Access, etc)

    but maybe i'm wrong..:P

    1st NF - a table should not contain repeating groups.
    2nd NF - any fields that do not depend fully on the primary key should be moved to another table.
    3rd NF - there should be no dependency between non key fields in same table.
    - E. Petroutsos -


    eRiCk

    A collection of "Laku-abis" Ebook, Permanent Residence

    Access Reserved Words, a Classic Form Bug, Access Limitation, Know run Process and the Lock they hold in, Logging User Activity in MSSQL,
    Kill Database Processes

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2003
    Posts
    509
    Oh right, looks like a trial and error situation. If i get an error will try it with [ ], if that don't work i'll asume it's something else.

  6. #6
    Fanatic Member
    Join Date
    Sep 2004
    Location
    Jakarta, Indonesia
    Posts
    818
    in other words something like that

    1st NF - a table should not contain repeating groups.
    2nd NF - any fields that do not depend fully on the primary key should be moved to another table.
    3rd NF - there should be no dependency between non key fields in same table.
    - E. Petroutsos -


    eRiCk

    A collection of "Laku-abis" Ebook, Permanent Residence

    Access Reserved Words, a Classic Form Bug, Access Limitation, Know run Process and the Lock they hold in, Logging User Activity in MSSQL,
    Kill Database Processes

  7. #7
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901
    I think that he means RESERVED word. A word that can't be used, like SELECT, or FROM.

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709
    Originally posted by snipered
    Oh right, looks like a trial and error situation. If i get an error will try it with [ ], if that don't work i'll asume it's something else.
    Also, the brackets are to be used when you have a table name or field name in your query that has a space in it.

    Ex.

    Code:
    SELECT [First Name] FROM [Employee Names];
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

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