473,378 Members | 1,360 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,378 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 1959
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.