473,385 Members | 1,838 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.

Create a list

I know this can be done because I have another access based
program(that the code is protected) that does it but I can't figure out
how.

I have a table with several fields, two of them are company and
lastname. I want a to open a form that has a box LastName/Company: and
when I start typing in that box all of the matches last name and
company populate the list - so for example I type in the box brow
and the list populates

Brown Construction
Brown James
Browst Inc

etc.

I posted this before and was told to use the criteria field with Like
but it doesnt' work in the other database I have I don't have to use
wildcards I just type and it comes up.

Thanks

PS I also got the reply combine Lastname and company into one field but
I know I don't have to do this because of the other database I have and
I don't want to do this

Apr 21 '06 #1
4 1961
Have you looked at http://www.allenbrowne.com/ser-32.html ?

Arno R

"Propoflady" <ch****@monticule.com> schreef in bericht news:11**********************@j33g2000cwa.googlegr oups.com...
I know this can be done because I have another access based
program(that the code is protected) that does it but I can't figure out
how.

I have a table with several fields, two of them are company and
lastname. I want a to open a form that has a box LastName/Company: and
when I start typing in that box all of the matches last name and
company populate the list - so for example I type in the box brow
and the list populates

Brown Construction
Brown James
Browst Inc

etc.

I posted this before and was told to use the criteria field with Like
but it doesnt' work in the other database I have I don't have to use
wildcards I just type and it comes up.

Thanks

PS I also got the reply combine Lastname and company into one field but
I know I don't have to do this because of the other database I have and
I don't want to do this

Apr 21 '06 #2
"Propoflady" <ch****@monticule.com> wrote in
news:11**********************@j33g2000cwa.googlegr oups.com:
I know this can be done because I have another access based
program(that the code is protected) that does it but I can't
figure out how.

I have a table with several fields, two of them are company
and lastname. I want a to open a form that has a box
LastName/Company: and when I start typing in that box all of
the matches last name and company populate the list - so for
example I type in the box brow and the list populates

Brown Construction
Brown James
Browst Inc

etc.

I posted this before and was told to use the criteria field
with Like but it doesnt' work in the other database I have I
don't have to use wildcards I just type and it comes up.
Since you can't see the code in the other form you can't see
that the programmer is probably using the Like operator, and
adding the wildcard in code after the entry but before passing
the criteria to the query. Do that and you'll have the operation
as you describe it.
Thanks

PS I also got the reply combine Lastname and company into one
field but I know I don't have to do this because of the other
database I have and I don't want to do this


What you again don't see is that the programmer of the other
database has probably taken the two separate fields and combined
them into a virtualized single one by coding a union query.
--
Bob Quintal

PA is y I've altered my email address.
Apr 22 '06 #3
Thank you !!!! the Union query works great but now I can't figure out
how to make it work in my combo box. I am using the wizard and trying
to create a combo box that finds a record on my form but I can't make
it work. Can you help.

Apr 24 '06 #4
"Propoflady" <ch****@monticule.com> wrote in
news:11**********************@i39g2000cwa.googlegr oups.com:
Thank you !!!! the Union query works great but now I can't
figure out how to make it work in my combo box. I am using
the wizard and trying to create a combo box that finds a
record on my form but I can't make it work. Can you help.

You'll have to forego the Wizard, (they are more like Lizards)
and code the combobox AfterUpdate event code manually.

Since I forget the field names you have, I cannot give the full
code, but something in the vein of

me.recordsetclone.findfirst "[lastname] = """ _
& me.combobox.value _
& """ OR [companyName = """ _
& me.combobox.value _
& """"

if NOT me.recordsetclone.nomatch then
me.bookmark = me.recordsetclone.bookmark
end if

--
Bob Quintal

PA is y I've altered my email address.
Apr 24 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Not Me | last post by:
Hi, I'm sure this is a common problem.. to create a single field from a whole column, where each row would be separated by a comma. I can do this for a specified table, and column.. and I've...
7
by: Wolfgang Kreuzer | last post by:
Hello all, I have two tables - Projects and ProjectStruct Table Projects contains master records of the projects, ProjectStruct allows to define a project herarchie and contains the fields...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
2
by: Dennis C. Drumm | last post by:
This is a restatement of an earlier post that evidently wasn't clear. I am building a custom MessageBox dialog that has, among other things, a few new button options (yes to all, no to all, etc.)...
6
by: Rich | last post by:
Hello, I want to simulate the dynamic thumbnail display of Windows Explorer (winxp) on a form or pannel container. If I place a picture box on my container form/pannel and dimension it to the...
5
by: Michael Sperlle | last post by:
Is it possible? Bestcrypt can supposedly be set up on linux, but it seems to need changes to the kernel before it can be installed, and I have no intention of going through whatever hell that would...
23
by: sandy | last post by:
I need (okay, I want) to make a dynamic array of my class 'Directory', within my class Directory (Can you already smell disaster?) Each Directory can have subdirectories so I thought to put these...
10
by: SM | last post by:
Hello I'm trying to create a multi dimensional array in JavaScript, but after some reading i still can't figure out how to apply it to my model. Here it is: I have a list A and for each item...
1
by: yaarnick | last post by:
Create a linked list data structure library to hold strings. Then library should support the following linked list operations. Create() – Creates the linked list Insert() – Insert a string into the...
3
by: =?Utf-8?B?RGFiYmxlck5M?= | last post by:
I have the following Methods: public SecondResult DoSomething() { FirstResult firstResult=GetFirstResult(); SecondResult secondResult=GetSecondResult(firstResult); return secondResult; } ...
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: 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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.