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

Creating a drop-down box in a Access query

2
Hello,

I am working with Access 2003 and have the following issue:

I have created some queries that will search my employee’s certification database. I search the database base on type certification and number of year’s experience. I place the ID# in one message box and a number representing the years in another parameter box. This will return any employees that match the given criteria. With over 100 various certifications in my company, it is very hard to remember the ID number for the certification. What I want to do is select the actual certification from a drop down to populate the first box and input the year box as usual. I am having a hard time figuring out just how to accomplish this task. Is there anyone out there who knows if this is even possible? I need to select the "Skills/EquipmentID" from a drop down. This is the SQL code that I've used thus far...

Expand|Select|Wrap|Line Numbers
  1. SELECT tblITSkillInfo.SkillID, tblITSkillInfo.[Skills/EquipID], tblITSkillInfo.EmployeeID, tblITSkillInfo.YrsExpr, tblITSkillInfo.MnthExpr
  2. FROM tblITSkillInfo
  3. WHERE (((tblITSkillInfo.[Skills/EquipID])=[Skill/Equipment ID]) AND ((tblITSkillInfo.YrsExpr)=[Years Experience]));

QSligh
Feb 6 '08 #1
3 2511
MMcCarthy
14,534 Expert Mod 8TB
It's not clear from your question exactly what you are trying to do. For the moment all I can suggest is you check out this tutorial on cascading combo boxes and see if it helps.
Feb 6 '08 #2
qsligh
2
It's not clear from your question exactly what you are trying to do. For the moment all I can suggest is you check out this tutorial on cascading combo boxes and see if it helps.
Sorry for the confusion in my opening question. The desired effect is to open a query and instead of having to input the data each time, have the choice of choosing predefined entries from a "drop-down" box. After which I click OK and the query runs.

R,
QSligh
Feb 8 '08 #3
MMcCarthy
14,534 Expert Mod 8TB
You mean you want to set the query criteria to controls on the form?

i.e.

If you had a dropdown box called cboName on a form called frmMain then you could set the criteria as ...

[Forms]![frmMain]![cboName]

The form would have to be open when the query ran.
Feb 8 '08 #4

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

Similar topics

3
by: konsu | last post by:
hello, i would like to write a batch file with all sql commands necessary to create a database, its tables, and populate them with initial data. would the experts please help me with these...
4
by: gonzal | last post by:
Hi Dose any body know why a temporary table gets deleted after querying it the first time (using SELECT INTO)? When I run the code bellow I'm getting an error message when open the temp table...
0
by: K Finegan | last post by:
I have an archival process on a large database that runs once a month. At the beginning of the process the triggers and indexes on the tables whose data is moved are dropped, the data is moved and...
0
by: Mary Lei | last post by:
After instaling db2 8.2.2 on a solaris box I ran a script that drops a database and then creates it. This scripts runs fine under db2 8.2.1 on linux. With 8.2.2 I got a mysterious error about...
3
by: Kyle Fitzgerald | last post by:
I've started a web control library project and can build my own controls to add to the toolbox in the .NET environment. The problem I'm having is I want to create a control just like the HTML...
4
by: Coleen | last post by:
Hi All :-) Can anyone give me a URL where I can find a good example of code on how to create a temporary SQL table using VB.net? I've checked the Microsoft site at: ...
2
by: astolpho | last post by:
I am using a slightly outdated reference book on J2EE programming. It gives 2 methods of creating a database used in its casestudies. The first is an ANT script that gives the following output: ...
1
by: DWiggin | last post by:
We are getting deadlock errors (sporadically) on a batch job we've created. This job runs against a SQL Server 2000 back-end. The first step of the batch job is to run a DDL script to drop...
16
by: Joell | last post by:
Hi Guys, Im still new to this SQL stuff and have a question about creating a counter that does not reset if I drop the temp table. Is this possible? I need to add new work order number (counter)...
3
by: Nokao | last post by:
I use db2 9 express-c Hi... I'm having that problem... .....every less-than-10-seconds, a entry like that (I displayed that entry with the command db2evmon -db 'MYDATABASE' -evm...
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: 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: 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
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
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.