RCheesley
Registered User.
- Local time
- Today, 23:29
- Joined
- Aug 12, 2008
- Messages
- 243
Hi Guys,
I've searched around for this but I can't find an answer!
Spent ages trying to figure out how to display this dataset, then figuring out cross tab queries, parameters for cross tab queries etc.
Finally got it working (a biig *WOOHOO* moment!) and thought the next stage would be easy peasy .. hahaha.
I have created a form based on a crosstab query + parameter, and it is working. This parameter is taking a value from the main form to filter the query, and if I load the form by itself then it works perfectly.
As soon as I embed the form as a subform I get the dreaded message "you fool, you can't do that!".
Is there any way of getting around this? I saw someone mention something about temporary tables but I'm not sure how to do this.
Basically my database is a stock management system, and I have an ordering form whereby the stock is ordered, and below it is a subform which allows ordering of 3 consumable items to go with that order.
The crosstab query is going to be used as another subform to identify what quantities have already been ordered of the three consumable items by the location ordering (this is what the parameter does - it restricts the crosstab query to the LocationID on the main ordering form).
Ultimately I want to do some kind of whizzyness to calculate the difference between the total number of consumables ordered and the total required based on the number of products which gets a wee bit complex (consumable 1 requires 1 per product, consumables 2 and 3 require 1 per 10 products).
*confoozled*!
Ruth
I've searched around for this but I can't find an answer!
Spent ages trying to figure out how to display this dataset, then figuring out cross tab queries, parameters for cross tab queries etc.
Finally got it working (a biig *WOOHOO* moment!) and thought the next stage would be easy peasy .. hahaha.
I have created a form based on a crosstab query + parameter, and it is working. This parameter is taking a value from the main form to filter the query, and if I load the form by itself then it works perfectly.
As soon as I embed the form as a subform I get the dreaded message "you fool, you can't do that!".
Is there any way of getting around this? I saw someone mention something about temporary tables but I'm not sure how to do this.
Basically my database is a stock management system, and I have an ordering form whereby the stock is ordered, and below it is a subform which allows ordering of 3 consumable items to go with that order.
The crosstab query is going to be used as another subform to identify what quantities have already been ordered of the three consumable items by the location ordering (this is what the parameter does - it restricts the crosstab query to the LocationID on the main ordering form).
Ultimately I want to do some kind of whizzyness to calculate the difference between the total number of consumables ordered and the total required based on the number of products which gets a wee bit complex (consumable 1 requires 1 per product, consumables 2 and 3 require 1 per 10 products).
*confoozled*!
Ruth