Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 4th, 2004, 05:10 PM
Authorized User
 
Join Date: Mar 2004
Location: Knoxville, TN, USA.
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Rood67
Default Dynamically Build 1 Xtab Qry Based On 6 Xtab Qry's

OK. I'm to my wits end. I work for a nation wide company in the callcenter portion. Each call that comes in, must be assigned a disposition by the agent before they can clear their system to take another call. All this transpires on a desktop app that updates an Oracle database table. I am using Access instead of straight SQL, because in Access I can create "pretty" reports, dump results to Excel, ect...

The dispositions are in a table, 6 rows deep by 11 columns wide. This displays on the agents screen as 6 drop down menus.

What I have set up right now, is 6 crosstab queries that singles out one set of data in the Oracle table each. Then I have another crosstab query that combines all 6 of the previous crosstabs into one result query.

This may sound convoluted, but it works quite nicely. With one major exception. If one of the dispositions is never selected in an entire shift, my final crosstab query freaks out. This is because it was designed to look for every possible disposition for each of the preliminary crosstabs.

An example is, an agent has to call one of our customers back, and there is no answer. No Answer is an one of the dispositions, and is initially pulled by the first preliminary crosstab, as long as any agent selected that disposition at least one time. If No Answer was never selected, the crosstab does not pull that in. The combining crosstab is set to look for No Answer in qryUnreachableXtab.

What I get is Access giving me an error that qryUnreachableXtab.[No Answer] could not be found. If I go in and remove that from the query grid, the combining crosstab works fine. Until the next day, when I have to put No Answer back in and run the query to see what field has no entry, and remove it from the grid, then the next day put that back in, run the query..... see where this is going?

Now I have set up Query By Form qrydef's before. But what I want to know this: Is is possible, to set up a recordset to look at each of my individual crosstabs, see what columns are showing up, then build my combine crosstabs qrydef.

I apologize if this sounds scattered, if anyone needs to see the massive listing of Access SQL statements associated with my 7 queries, I will post it.

Thanks In Advance,
Rood67
__________________
<b>Rood67</b>
Reply With Quote
  #2 (permalink)  
Old March 4th, 2004, 06:02 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Melbourne, Vic, Australia.
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think you will need to post the SQL statements - as I'm not entirely sure what you're on about. From what I can gather, it sounds like it could be easily done with a UNION query - which sounds so easy, I must be wrong. So, like I said, post your code

I am a loud man with a very large hat. This means I am in charge
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use a frm based on a qry to update a tbl Brucifier Access 1 August 8th, 2006 10:06 PM
Build a page dynamically jbenson001 ASP.NET 1.x and 2.0 Application Design 13 June 20th, 2005 12:12 PM
Build an array dynamically yeva40 Javascript How-To 1 May 27th, 2005 03:09 PM
Display images dynamically based on links stored khalidone Crystal Reports 4 September 22nd, 2004 02:26 PM
Prb: COUNT qry result NOT SAME as SELECT qry savoym SQL Language 5 July 2nd, 2003 04:44 PM



All times are GMT -4. The time now is 09:31 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.