Another Problem.. Please Help Me Genius..

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2009
Posts: 16
Reputation: Agent-of-Chaos is an unknown quantity at this point 
Solved Threads: 1
Agent-of-Chaos Agent-of-Chaos is offline Offline
Newbie Poster

Another Problem.. Please Help Me Genius..

 
0
  #1
Aug 29th, 2009
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..
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Dim vrnt As Variant
  2. With Adodc4.Recordset
  3. Do While Not .EOF
  4. vrnt = ![Product_Name]
  5. If IsNull(vrnt) Then vrnt = ""
  6. Combo1(0).AddItem CStr(vrnt)
  7. .MoveNext
  8. Loop
  9. End With
Last edited by John A; Sep 1st, 2009 at 9:23 pm. Reason: added code tags
Attached Images
File Type: bmp adodc.bmp (391.3 KB, 5 views)
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 16
Reputation: Agent-of-Chaos is an unknown quantity at this point 
Solved Threads: 1
Agent-of-Chaos Agent-of-Chaos is offline Offline
Newbie Poster

Re: Another Problem.. Please Help Me Genius..

 
0
  #2
Sep 1st, 2009
Please why you are not helping me, i dont have time coz i have to present my project on 3rd sep please reply me today please please.......
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 901
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 167
vb5prgrmr vb5prgrmr is offline Offline
Posting Shark

Re: Another Problem.. Please Help Me Genius..

 
0
  #3
Sep 1st, 2009
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
If anyone has helped you solve your problem, please mark your thread as solved.

Thanks
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC