Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variable number of columns in crossatb query

Status
Not open for further replies.

Lizard

Technical User
Mar 14, 2001
14
BE
Hi everybody,

I've a crosstab query that shows, as column heading, the different inventory "types" for a given part (e.g. invent available, in transit,...). The values in the result are then the quantities in inventory for the different types of inventory.
The problem is that, the report will show an inventory type column if there are some quantities. The number of columns in the query result will then vary from one day to another.
I can't then use the crosstab query as basis of another query.
Is there a way to get a fixed number of columns, showing all the possible inventory types, even if the quantities are null ?

Thanks.

Lizard
 
properties, column headings. Fill in hte field names you want.

Other ways to do this, but this is easiest for the average.


MichaelRed
redmsp@erols.com

There is never time to do it right but there is always time to do it over
 
Thanks Michael ! Quick and simple ! I didn't know the trick.

Lizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top