Results 1 to 5 of 5

Thread: kindly check the syntax..

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2006
    Location
    philippines
    Posts
    98

    Question kindly check the syntax..

    hold = variable here..


    Adodc1.RecordSource = "SELECT Company_Profile.contact_fname AS contact_fname,Company_Profile.contact_middle AS contact_middle,Company_Profile.contact_lname AS contact_lname, Project_Info.title AS title, Project_Info.pro_no as pro_no, Company_Projects.pro_no as pro_no1 FROM Company_Projects, Company_Profile, Project_Info WHERE Project_Info.title ='" & hold & "' and Project_Info.pro_no = '" & Company_Projects.pro_no & "'"
    Adodc1.Refresh

    The error is object required.

    Please help me!

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: kindly check the syntax..

    Its probably your "Adodc1" control. Is it on the form where your code is? What event is this code in?
    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

  3. #3
    Frenzied Member
    Join Date
    Jul 2007
    Posts
    1,306

    Re: kindly check the syntax..

    Whats this ?

    Code:
    '" & Company_Projects.pro_no & "'"
    is Company_Projects a class or class object?


    IIF(Post.Rate > 0 , , )

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: kindly check the syntax..

    Its a table and good spot as its not wrapped in the double quotes.
    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

  5. #5
    PowerPoster ThEiMp's Avatar
    Join Date
    Dec 2007
    Location
    Take The PCI Bus Across To The CPU!!
    Posts
    3,948

    Re: kindly check the syntax..

    You are missing the control's name somewhere in your code. Can you post your part of the source code within this thread. Because so we can have a good look at it.

    Moment please: Has your object been placed as a control on your Form?

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