cunnie
05-13-2002, 04:22 AM
Explaination of the problem here (http://www.economatics.co.uk/access/help.htm)
[This message has been edited by cunnie (edited 05-13-2002).]
[This message has been edited by cunnie (edited 05-13-2002).]
|
View Full Version : crosstab query cunnie 05-13-2002, 04:22 AM Explaination of the problem here (http://www.economatics.co.uk/access/help.htm) [This message has been edited by cunnie (edited 05-13-2002).] Pat Hartman 05-13-2002, 09:50 AM Crosstab queries are very sensitive to parameters whether they are specified in the crosstab query or a query that is used to build the crosstab. Try changing the paramater query so that it specifically defines the parameters. Right click on the grey background and choose parameters. Enter the two parameters (copy and paste is best since these names must be an exact match) and their data types. cunnie 05-17-2002, 01:15 AM I've got the crosstab working now, I needed to set the parameters data type to Value instead of Text (in the parameter query). I guess this is because i'm referencing the value of the text box and not its text, makes sense in a strange access kinda way. [This message has been edited by cunnie (edited 05-17-2002).] cunnie 05-17-2002, 02:00 AM Ok, The problem I've got now is that I want the croostab query to be shown in a sub-form on the servicesheet form. The query works on its own, but when i try and create a form based on the query it doesn't give me any fields to add, so no data is shown. I'm pretty sure I've done this before, but don't remember doing anything special to make it work, any ideas? cheers Rich 05-17-2002, 05:56 AM You can't add data into a crosstab, only display it, is that what you want to do? cunnie 05-17-2002, 06:39 AM yeah I just want to show the crosstab Rich 05-17-2002, 08:03 AM Just drag the query onto the form, should work. cunnie 05-20-2002, 01:27 AM Yeah thats what I thought, but i did it and the sub-form comes up with no control source. If I try and create it with the wizard when i asks for what fields I want to include, it doesn't show any in the available fields list. The other day I managed to get an error message (don't remember what I did now), something like 'The query you have selected has no output fields or is spelled incorrectly...' Hope someone can help Thanks, cunnie |