|
-
Jun 1st, 2008, 04:56 AM
#1
Thread Starter
Lively Member
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!
-
Jun 1st, 2008, 05:16 AM
#2
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Jun 1st, 2008, 06:33 AM
#3
Frenzied Member
Re: kindly check the syntax..
Whats this ?
Code:
'" & Company_Projects.pro_no & "'"
is Company_Projects a class or class object?
-
Jun 1st, 2008, 07:58 AM
#4
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Jun 1st, 2008, 09:24 PM
#5
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|