Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Developers    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Lookup with crosstab query
Marc Lievens 
    
2 years ago
Hello,

I have a crosstab query where the rows represent teams, the columns represent dates, and the data consists of task IDs. Each team has a row with corresponding task IDs for each date. There are 35 days in total.

I would like to display this crosstab query in a form or report, but I want to show the description of each task instead of just the ID.

How can i do this? With a new query or with the oncurrent event?
Sami Shamma  @Reply  
             
2 years ago
First, create a regular query to bring in the description, then use this query to feed the crosstab query.
Marc Lievens OP  @Reply  
    
2 years ago
But I still need the ID because the user can select the task and change it to another task or move it to another day. A task can also take several days (like TaskDescription & TaskDay from TaskDays), and it is also nice to get a good solution instead of a workaround.
Sami Shamma  @Reply  
             
2 years ago
Keep the ID in the original query
Kevin Yip  @Reply  
     
2 years ago
A crosstab query is non-updatable, so if you want to use it for a data entry form, it won't work, because you can't change the data.  This is not Excel, where you can enter data wherever you want.  Access requires data entry to be done in a structural manner, because Access stores data structurally, unlike Excel.

I suggest you use a main form-subfrom setup.  Have the user select a team on the main form, and show the tasks and dates for that team in the subform.  Or, select a date on the main form, and show the teams and tasks for that date on the subform.

A report can use a crosstab query with no problem (but with some caveats) because a report doesn't need to change the data, so the non-updatability of a crosstab query won't matter.
Marc Lievens OP  @Reply  
    
2 years ago
I'm not updating the crosstab query. The user can selects a task from the unassigned tasks list and then selects the starting date in the crosstab form. In the onclick event i update the master table upon which the crosstab query is based, and then requery the crosstab. This process works fine.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developers.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 8/1/2026 3:44:33 AM. PLT: 0s