473,386 Members | 2,042 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,386 software developers and data experts.

Simplify Record Search

The most dangerous soldier in battle is a new 2nd lt. with a map. In peacetime, it's me with self-taught Access capabilities... I now have a databse wtih about 1500 customers and family members. to search out the record for a particular family member, I have to scroll alphabetically through 1500 complete forms (headed with the parents' names) until I find the one with that person's name on it. The search fun tion only works if I use the name exactly as it's spelled, so if it's misspelled, if there's an extra space between first and last name, etc., it won't be found.

I was thinking maybe I could have a list of parents' names, clicking on which would open up the list of all forms headed by that parent. Does anybody have either tips on how to do that, or a better idea?
Mar 2 '07 #1
4 1255
MMcCarthy
14,534 Expert Mod 8TB
tblCustomers
CustomerID (Primary key - Autonumber)
CustomerName
HeadOfHouse (Yes/No field)
FamilyID (Foreign key reference to the primary key of this table)

In the above structure each person would be entered once. If they are the designated head of the household then HeadOfHouse would be Yes with the default set to No. If No then FamilyID would be set to whomever is the HeadOfHouse for that family.

Mary
Mar 2 '07 #2
nico5038
3,080 Expert 2GB
I always us ethe right-click popup menu for quick selections.
Just right-click in the name field and enter in the inputbox:
*adam*
and all names containing adam will appear.
All wild characters (like the * and ?) can be used. * = any number of characters so:
adam*
will give all names starting with adam
and
*adam
gives all names ending on adam.
The ? will substitute one character so:
?adam
will give madam and not madama !

Getting the idea ?

Nic;o)
Mar 3 '07 #3
tblCustomers
CustomerID (Primary key - Autonumber)
CustomerName
HeadOfHouse (Yes/No field)
FamilyID (Foreign key reference to the primary key of this table)

In the above structure each person would be entered once. If they are the designated head of the household then HeadOfHouse would be Yes with the default set to No. If No then FamilyID would be set to whomever is the HeadOfHouse for that family.

Mary
thanks for this information, Mary. I'm going to try Nico's suggestion first and see if it works. If it doesn't, I'll be coming back to you to see how to make yours work.
Mar 4 '07 #4
Thanks, Nico.It works.

chuckg


I always us ethe right-click popup menu for quick selections.
Just right-click in the name field and enter in the inputbox:
*adam*
and all names containing adam will appear.
All wild characters (like the * and ?) can be used. * = any number of characters so:
adam*
will give all names starting with adam
and
*adam
gives all names ending on adam.
The ? will substitute one character so:
?adam
will give madam and not madama !

Getting the idea ?

Nic;o)
Mar 5 '07 #5

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

Similar topics

8
by: Zlatko Matić | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the...
3
by: kaosyeti | last post by:
i need to do a record search in a form but there are a few twists. 1. there is no unique field to any of these records 2. the form has 9 fields, 5 of which are required for creating a record. 3....
22
by: Br | last post by:
First issue: When using ADPs you no longer have the ability to issue a me.refresh to save the current record on a form (the me.refresh does a requery in an ADP). We usually do this before...
0
by: fig000 | last post by:
Hi, I'm trying to use the sqldatasource control and a detailsview to create a fully functional data entry screen; it's quite easy. I can see the strength of creating a master grid associated...
6
by: San | last post by:
Hey, I need to create a form with several text boxes in which users type in key words, press a command button on the form and it opens a matching record. Thanking you in advance.
7
by: john | last post by:
In my form I have a master table and a details table linked 1xM. I can search through the whole parent table but I also like to be able to search through the child table fields to find parent...
3
by: bluez | last post by:
I want to design a webpage where user can search the data from the database and list out the related records. Each of the record got a delete button which allow user to delete the record. ...
1
by: Simon | last post by:
Dear reader, How can I find a record in a sub form, the sub form type is DataSheet and the record collection in the subform are to many to show them all in the subform window.
6
jinalpatel
by: jinalpatel | last post by:
I am using following code for searching records. 'Purpose: Build up the criteria string form the non-blank search boxes, and apply to the form's Filter. 'Notes: 1. We tack " AND " on...
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.