473,395 Members | 1,496 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,395 software developers and data experts.

Filtering a form using selection of a combo box on a another form (user ID)

I have this small database I am converting from A97 to A2010. I created a new A2010 db and pulled over objects I needed. Everything is tested out and working fine.

I also added a drop down box to the main switchboard to select a "user". Its purpose is so the filter through all the records and pull up only the list of drawing # for that specific drafter.

So I have a table called tblSign_In which has UID auto number, and the employees name. This will be the user names for the drop down of the Main Switchboard.

I have a table called SHEET LIST that list all the data I need to display. This will end up holding tens of thousands of records of information about drawing. I added to this table a field called the LogInID field (UID) to link back to the tblSign_IN, and the correct number and combination.

I also have a query called qrySHEET LIST which selects all SHEET TABLE and inner joins to the tblSign_IN to pull the Employee Name linking on a LogInID field.

What I was trying to do is filter SHEET LIST form (my output form) by the user selected on the MAIN SWITCH form in the drop down box I called cboSignInEmployeeName.

For example:
Sheet List (tbl) might contain information like: Sheet# 22a6; description Dryer; build hours:12; drafter #4.

qrySHEET LIST (also my ouptut data) is pulling all the above, but replace 4 with actual drafter’s name, John Smith

To filter, I have two methods:

The query is my record source for my form SHEET LIST, so I added
Expand|Select|Wrap|Line Numbers
  1. WHERE (((tblSIGN_IN.[Employee Name])=[Forms]![MAIN SWITCHBOARD]![cboSignInEmployeeName]));
This prompts me to enter: Forms!MAIN SWITCHBOARD!cboSignInEmployeeName

I removed that, went into the forms property:

Change Filter on Load to Yes, and
added [Forms]![MAIN SWITCHBOARD]![cboSignInEmployeeName]
but again I am prompted to enter a value.

I also tried to play with VBA coding, but skill is limited in that matter, so I really had no idea what I was doing.
Feb 19 '13 #1
1 1809
zmbd
5,501 Expert Mod 4TB
We see this question a lot so there are few articles that should help guide you:
-filtering-
Microsoft Access / VBA Insights Sitemap
42.Cascaded Form Filtering
55.Multiple Combobox Filter with Clear Option
168.Example Filtering on a Form.

If you get bogged down in these please don't hesitate to post back

BTW: You should also take note of the following:
A Tutorial for Access

Database Normalization and Table Structures.

>Posting Guidelines
> How to ask good questions
> FAQ
> Before Posting (VBA or SQL) Code
Feb 19 '13 #2

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

Similar topics

3
by: Bob Alston | last post by:
I am using a combo box to select the key to records and then go to the selected record on my form. Works well. However, the list, which contains people names, is rather long. What I would like...
3
by: pelcovits | last post by:
I am trying to set up an unbound form to enter report criteria. I've followed the MS Office Assistance document: "Create a form to enter report criteria" which describes how to enter data (such...
2
by: Jedi10180 | last post by:
I have a combo box that has 5 categories in it. When a user clicks on a category in that list, I need to have a second box populate with a list of pdf files that relate only to that category. Then,...
5
by: Simon Jans | last post by:
Hello I'm having serious troubles creating a seach form showing data from multiple tbls, I'll try to explain my problem using a simple example by the way I'm using Acces 2003 tblEquipment ...
3
by: sstasiak | last post by:
Hello all I have read similar threads on this site, but can't seem to get any of the solutions working for me. I have a main form(OncRegMain) that adds records to a table(tblOncReg). This table...
1
by: tomlebold | last post by:
Having problems displaying query results from combo boxes on a sub form, which is on the same form that is used to select criteria. This has always worked form me when displaying query results on...
7
by: Mattic | last post by:
Hi guys, I'm fairly new to access, with the help of this site and google I've managed to find my way around (even dabbling with some VB too) but there's something that's got me stuck. I've got my...
1
by: viranadim | last post by:
I am having problems with attempting to filter a form based on criteria selected in a combo box from another form. I am attempting to filter a form called "Ford CheckList" that is based on a table...
1
by: bullfrog83 | last post by:
In the form header I have four unbound comboboxes that I use to filter records in the detail section. You can select a value in one, two, three or all four of the comboboxes and it doesn't matter...
2
by: Horace Martin | last post by:
How do I populate multiple fields on a form by using a combo box. My combo box has 3 col. When I make a selection from my combo box all 3 fields should be filled in on my form. eg. Form Fields:...
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: 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
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.