473,385 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Search Engine issues and how ti get multiple answers in combo box

Hi,

I'm doing a project in vb6 i have a data where when i search it should give multiple answers in combo box.

example i have a debtor code each debtor code as more than one addresses when i search in one debtor code how can i get multiple addresses in the combo box. my search engine command as follows

Expand|Select|Wrap|Line Numbers
  1. Private Sub Command2_Click()
  2. Adodc1.Recordset.MoveFirst
  3. Adodc1.Recordset.Find "DEBTOR_CODE = '" & Text11.Text & "'"
  4. If Adodc1.Recordset.EOF = True Or Adodc1.Recordset.BOF = True Then
  5. MsgBox "Record Not Found!", vbApplicationModal
  6. Adodc1.Recordset.MoveFirst
  7. Me.Combo1.SetFocus
  8. Me.Combo1.ListIndex = Me.Text11.Text
  9. End If
  10. End Sub
please let me know whether i have to add the new command into this or ......
Nov 13 '14 #1
2 989
twinnyfo
3,653 Expert Mod 2GB
Instead of creating a recordset, why not set the Combo Box's Row Source to the Query used to create that recordset? Just be sure to include your validation criteria in the SQL statement:

Expand|Select|Wrap|Line Numbers
  1. WHERE DEBTOR_CODE = '" & Text11.Text & "'"
This should list all records that meet the criteria in the Combo Box.

P.S. Don't forget to use Code Tags.
Nov 13 '14 #2
Hi Can you please re write the program again, its bit confusing me
Nov 14 '14 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: phpkid | last post by:
Howdy I've been given conflicting answers about search engines picking up urls like: http://mysite.com/index.php?var1=1&var2=2&var3=3 Do search engines pick up these urls? I've been considering...
1
by: michela rossi | last post by:
Hi, I currently have a website (running on RedHat Linux) comprising a large number of HTML files and PDF's. I currently use PHPMySearch (http://phpmysearch.web4.hm/index.php) which is a simple...
4
by: igthibau | last post by:
Hello everyone, well, the title says pretty much all. First off though I'd like to say I have no idea what ng I should post this to. I chose this one because I am more likely to understand...
0
by: Mark Goldin | last post by:
I am working on a search engine. An aspx page shows some data. The user will type something in and click a button to search. I want to create a server solution for the search engine. So the search...
11
by: emailus | last post by:
I am webmaster for the domain <www.alpha1.org.au>. Not being an expert in html, I take advantage of my domain Registrant's web building tool, 'Instant Website'. This tool is provided as part of...
8
by: Roman | last post by:
I received a marketing call from a guy first showing me my website and then some other website and ranking of that other website. My questions is it worth paying to SEO corporation a $1200 -...
0
by: Search.DailyFreeCode.Com | last post by:
http://search.dailyfreecode.com/ A Search Engine has been designed which fulfills all the needs of programmers, with specific focus on following areas 1. Projects 2. Sourcecode 3. Articles...
3
by: gyap88 | last post by:
My search engine in visual basic 2005 has 4 textbox for users to input values, named textbox1,textbox2,textbox3,textbox4. I have a string assigned to each of the textbox named...
0
by: Rb | last post by:
*New Biology Search Engine VADLO* Site : Vadlo (http://www.vadlo.com) Daily Research Cartoons: http://www.vadlo.com/Daily_Research_Cartoon.html Description: Vadlo is a search engine for the...
2
by: deiv82 | last post by:
Hello everyone, I'm trying to do a little search engine for my website. Like often, I've the problem to operate on multiple tables. This is the part of code that interests my problem. It works...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.