Use a combo box to pull up a form? (1 Viewer)

tmontney

New member
Local time
Today, 08:17
Joined
May 27, 2011
Messages
2
I'm hoping this is the correct section to post this. I am talking about forms :p

Anyway, I've googled, googled, and googled for this but I just can't find what I'm looking for. I'm creating a "phone book" for myself. Keep track of hundreds of contacts. Of course, I'm not the only one accessing it. I'd like to create a combo box where I can type, say, a last name. I type it and hit enter, it brings up a list of people with that last name. Or it could bring up a form of the first person with that last name.

If there's another way than combo boxes, please let me know. I'm only talking about them because that's the only way I can think of.

If there's anything with directly putting in code and not using a wizard, PLEASE be as informative as possible as I've only been working with Access for a short time.

Thanks.
 

jdraw

Super Moderator
Staff member
Local time
Today, 11:17
Joined
Jan 23, 2006
Messages
15,379
Interesting, I created a sample mdb for someone last night. They had a problem with duplicates in a different context.
In my sample, there is a staff table (could be contacts)
and a form. The form has a list box (with staff names) and a textbox.
In the textbox, you put the name you're searching for.
As you type, it updates the list box with similar names
When you stop, the list box will contain one or more names (staff)
Doubleclick the name in the list, and a new form with StaffDetails opens


I've attached it ListBoxDup.mdb acc2003 format.

You could modify table or forms as you need.

Good luck.
 

Attachments

  • ListBoxDup.mdb
    288 KB · Views: 104

tmontney

New member
Local time
Today, 08:17
Joined
May 27, 2011
Messages
2
Interesting, I created a sample mdb for someone last night. They had a problem with duplicates in a different context.
In my sample, there is a staff table (could be contacts)
and a form. The form has a list box (with staff names) and a textbox.
In the textbox, you put the name you're searching for.
As you type, it updates the list box with similar names
When you stop, the list box will contain one or more names (staff)
Doubleclick the name in the list, and a new form with StaffDetails opens


I've attached it ListBoxDup.mdb acc2003 format.

You could modify table or forms as you need.

Good luck.



Having a bit of an issue. How would I go about editing it to fit my needs? Basically, I have a button on my startup form that would open the search form. I have a single table with FirstName, LastName, phone number (home, work, and cell), releationship, and so forth.

Thanks!
 

Users who are viewing this thread

Top Bottom