Wrox Programmer Forums
|
BOOK: Beginning JavaScript
This is the forum to discuss the Wrox book Beginning JavaScript by Paul Wilton; ISBN: 9780764544057
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning JavaScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 26th, 2006, 08:49 PM
Registered User
 
Join Date: Jul 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default CrossTab - Unbound ComboBox Form

Is it possible to have an Unbound ComboBox where the source record is a CrossTab Query? I’m having trouble with a form. The form is for the user to choose only their regional ZONE & get a report of only their columnized regional pricing.

I can filter criteria manually within the CrossTab Query: WHERE ((([Competitors - CLP].ZONE)="BILL")). Then I changed it for the form to: WHERE ((([Competitors - CLP].ZONE) Like [Forms]![ZONE REPORTS Form]![ZONE])).

The following SQL works without the form.
TRANSFORM First([Competitors - CLP].[PRICE TEXT]) AS [FirstOfPRICE TEXT] SELECT [Competitors - CLP].ITEMNO FROM [Competitors - CLP]
WHERE ((([Competitors - CLP].ZONE)="BILL"))
GROUP BY [Competitors - CLP].ITEMNO PIVOT [Competitors - CLP].COMP;

This is similar to a simple query I have that works with the same type of form & the following WHERE criteria: WHERE ((([SALES_DATA].VENDOR) Like [Forms]![SALES_REPORTS]![Vendor]));

This form has a combo box where a user can choose the filtering criteria for their individual reports. This form runs great with the following DoCmd.

Private Sub Command6_Click()
Me.Visible = False
   DoCmd.OpenQuery "MT_PROD_SALES", acViewNormal, acEdit
   DoCmd.Close acForm, "SALES_REPORTS"
   DoCmd.RunMacro "SALES_Macro"







Similar Threads
Thread Thread Starter Forum Replies Last Post
Populating an unbound form from a table Luis Access VBA 8 November 21st, 2008 08:37 AM
Posting the value of an unbound form field into a ebburks Access 8 May 27th, 2006 04:38 PM
Populate unbound form with recordset pacg Access VBA 2 September 26th, 2005 06:06 PM
unbound field in a form zanza67 BOOK: Access 2003 VBA Programmer's Reference 0 September 3rd, 2005 01:46 PM
Unbound Fields on a continuous form phil.t Access 0 October 5th, 2004 07:44 PM





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