Microsoft Access Forums

Go Back   Microsoft Access Forums > Access Forums > Queries

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 11-28-2006, 06:38 PM
Novice
 
Join Date: Nov 2006
Location: Minneapolis MN
Posts: 2
kevdmiller
Default How to query boolean values from table

Hello Everyone, I am kind of new to Access and SQL in General and have a table of employee skills and have them as boolean values. I want to query the table and find out which columns have been checked also how would I have a form ask to this query so someone could look for certain skills in a emloyee and have the query return employees who have some or all of the skills.
Thanks for the help!!
Reply With Quote
  #2  
Old 11-30-2006, 01:16 AM
Novice
 
Join Date: Jun 2005
Location: Northampton, England
Posts: 14
Tanis
Default

Create a query that uses the boolean value True as the criteria if you only want those that have a skill. In the saame query you could have a parameter that asks for the skill. Here is some SQL that will do just that.

SELECT tblEmployeeSkill.SkillID, tblEmployeeSkill.Skill, tblEmployeeSkill.SkillYesNo, tblEmployeeSkill.Employee
FROM tblEmployeeSkill
WHERE (((tblEmployeeSkill.Skill)=[Enter skill]) AND ((tblEmployeeSkill.SkillYesNo)=True));

Change the field and tables names as appropriate.
Reply With Quote
  #3  
Old 11-30-2006, 04:41 PM
Novice
 
Join Date: Nov 2006
Location: Minneapolis MN
Posts: 2
kevdmiller
Default Boolean Query

Thank you very much.

I need a little more help.

I have the 20 or so skills in a form with checkboxes next to them and I want the employer to be able to query using the same kind of form to do their query by checking boxes and entering a jobsite # to return the employees who have some or all the skills. I have my tables set up with the employees, the skills and the jobsites related by EmpID and Jobsite. I understand how the query works that you sent but I am wondering how to do a query with a checkbox form to choose the skills needed or is it not possible.
Thanks for your help.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Table values in forms xzxz Access 3 10-28-2008 06:29 AM
Problem creating new records using old values on same table. gailoni Programming 0 10-22-2008 10:08 PM
Null Values not showing up in a Query Valli Queries 0 01-04-2006 12:53 PM
Using same query with different table fashoda Queries 1 12-13-2005 09:05 PM
Use same query with different table fashoda Access 1 12-09-2005 05:44 PM


All times are GMT -8. The time now is 03:04 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.