|
-
Jan 27th, 2009, 05:41 AM
#1
Thread Starter
Lively Member
osenxpcombobox
hi to every one! i have a problem using osenxp controls and now i use it from one of this controls, osenxpcombobox, and i want to view a record in my database when i click the dropdown arrow plss any have i dia, and i have here a wrong sentax code. i dont knw how it to make right?
pls i need correct sentax for it?
-
Jan 27th, 2009, 11:58 AM
#2
Re: osenxpcombobox
It would really helpl others to help you if you post your code so we can see what the issue may be.
Last edited by RobDog888; Jan 27th, 2009 at 12:24 PM.
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 
-
Jan 27th, 2009, 12:50 PM
#3
Thread Starter
Lively Member
Re: osenxpcombobox
Code:
Private Sub Form_Load()
Me.OsenXPForm1.Init Me
osenxpcombobox.InsertItemBySQL AdoCN, "select SupplierID,CompanyName from suppliers order by supplierid", True, True
cboSP.TextColumn = 1 ' Display >> CompanyName
end sub
hope u understand what i mean and i donnt knw what the extention between this code
and i realy appraciat it who can help me..
-
Jan 27th, 2009, 03:37 PM
#4
Re: osenxpcombobox
osenxpcombobox.InsertItemBySQL AdoCN, "select SupplierID,CompanyName from suppliers order by supplierid", True, True
cboSP.TextColumn = 1 ' Display >> CompanyName
are these 2 different comboboxes?
which line gives error?
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
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
|