| | |
Another Problem.. Please Help Me Genius..
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jul 2009
Posts: 16
Reputation:
Solved Threads: 1
hi i am making pos system i am using msflexgrid.. and i have make combo box visible when user clicks on grid... i have data combo which contains all supplier company name.... now my problem is that i want to load the combo box with relevant products as user selects Supplier company name...i dont want to show all products... i only want to load the products whos supplier name = dataCmbo.Text and the most important i want to do it by using Adodc...
what i am doing is this(See in picture)...when programs load it does not give any error but it also dont add any record in combo box also.. please help me as early as possible it is urgent.
there is some problem in sql statement of adodc please figure it out.
(Please Check attachments)
my code to load combo is this..
what i am doing is this(See in picture)...when programs load it does not give any error but it also dont add any record in combo box also.. please help me as early as possible it is urgent.
there is some problem in sql statement of adodc please figure it out.
(Please Check attachments)
my code to load combo is this..
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Dim vrnt As Variant With Adodc4.Recordset Do While Not .EOF vrnt = ![Product_Name] If IsNull(vrnt) Then vrnt = "" Combo1(0).AddItem CStr(vrnt) .MoveNext Loop End With
Last edited by John A; Sep 1st, 2009 at 9:23 pm. Reason: added code tags
•
•
Join Date: Mar 2009
Posts: 901
Reputation:
Solved Threads: 167
Well to begin with, I would change you varient variable to a string. Then I would check to see if that string equaled vbNullString and if it didn't, then add the value retrieved from the database. Otherwise, why add an empty string to a combo box.
Good Luck
Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.
Thanks
Thanks
![]() |
Similar Threads
- hover not working in firefox/safari but works in IE (HTML and CSS)
- Detecting the point of collision between a rotating point and a rotating line. (Game Development)
- Disappearing Windows Help!!! (Windows NT / 2000 / XP)
- Ridiculous Problem (IT Professionals' Lounge)
- genius mouse problem (USB Devices and other Peripherals)
- Preview cropping problem (Mac Software)
- Lets see whos a genius (Windows NT / 2000 / XP)
- First job interview; and its big (IT Professionals' Lounge)
- Trojan Problem (Viruses, Spyware and other Nasties)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Very Importanat question .. help please
- Next Thread: how to conver figures to words
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex age append application basic beginner birth bmp c++ calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver struct subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





