PC Review


Reply
Thread Tools Rate Thread

Crosstab but if a value does not exist,it shows an error in a sub-

 
 
=?Utf-8?B?bGRpYXo=?=
Guest
Posts: n/a
 
      25th Oct 2007
I have a crosstab query that shows datas like this:
W-Date Planner ACCY CONC POUCH
22-Oct-07 BAM-06 38 67 96
23-Oct-07 BAM-06 14 8 85
24-Oct-07 BAM-06 106 30 220

where ACCY,CONC, POUCH is the "Column Heading" the query is working fine,
but these datas are showed to the user using a subform, the problem is when
in crosstab query appear a new Style, like TOC and do not appear ACCY or
other it shows an error, because a field in sub-form was not found

I think it's because the sub-form was built with previous datas and then
when new datas appear it shows the error,

how fix this?, or how shows datas to the user as read only but not using a
sub-form or report because they aren't going to work

Thanks
LD

--
Lorenzo DÃ*az
Cad Technician
 
Reply With Quote
 
 
 
 
=?Utf-8?B?S0FSTCBERVdFWQ==?=
Guest
Posts: n/a
 
      25th Oct 2007
Post your SQL.
--
KARL DEWEY
Build a little - Test a little


"ldiaz" wrote:

> I have a crosstab query that shows datas like this:
> W-Date Planner ACCY CONC POUCH
> 22-Oct-07 BAM-06 38 67 96
> 23-Oct-07 BAM-06 14 8 85
> 24-Oct-07 BAM-06 106 30 220
>
> where ACCY,CONC, POUCH is the "Column Heading" the query is working fine,
> but these datas are showed to the user using a subform, the problem is when
> in crosstab query appear a new Style, like TOC and do not appear ACCY or
> other it shows an error, because a field in sub-form was not found
>
> I think it's because the sub-form was built with previous datas and then
> when new datas appear it shows the error,
>
> how fix this?, or how shows datas to the user as read only but not using a
> sub-form or report because they aren't going to work
>
> Thanks
> LD
>
> --
> Lorenzo DÃ*az
> Cad Technician

 
Reply With Quote
 
=?Utf-8?B?bGRpYXo=?=
Guest
Posts: n/a
 
      26th Oct 2007

Here is the SQL
TRANSFORM Sum(IDVolatilDBID_lbl.Qty) AS SumOfQty
SELECT IDVolatilDBID_lbl.[W-Date], IDVolatilDBID_lbl.Planner
FROM To_Update_Excel_r1 INNER JOIN IDVolatilDBID_lbl ON
To_Update_Excel_r1.WO_ID = IDVolatilDBID_lbl.WO_ID
GROUP BY IDVolatilDBID_lbl.[W-Date], IDVolatilDBID_lbl.Planner
PIVOT IDVolatilDBID_lbl.User6;




"KARL DEWEY" wrote:

> Post your SQL.
> --
> KARL DEWEY
> Build a little - Test a little
>
>
> "ldiaz" wrote:
>
> > I have a crosstab query that shows datas like this:
> > W-Date Planner ACCY CONC POUCH
> > 22-Oct-07 BAM-06 38 67 96
> > 23-Oct-07 BAM-06 14 8 85
> > 24-Oct-07 BAM-06 106 30 220
> >
> > where ACCY,CONC, POUCH is the "Column Heading" the query is working fine,
> > but these datas are showed to the user using a subform, the problem is when
> > in crosstab query appear a new Style, like TOC and do not appear ACCY or
> > other it shows an error, because a field in sub-form was not found
> >
> > I think it's because the sub-form was built with previous datas and then
> > when new datas appear it shows the error,
> >
> > how fix this?, or how shows datas to the user as read only but not using a
> > sub-form or report because they aren't going to work
> >
> > Thanks
> > LD
> >
> > --
> > Lorenzo DÃ*az
> > Cad Technician

 
Reply With Quote
 
=?Utf-8?B?S0FSTCBERVdFWQ==?=
Guest
Posts: n/a
 
      26th Oct 2007
Try this --
TRANSFORM IIf(Sum([QTY]) Is Null," ",Sum([QTY])) AS Expr1
SELECT IDVolatilDBID_lbl.[W-Date], IDVolatilDBID_lbl.Planner
FROM To_Update_Excel_r1 INNER JOIN IDVolatilDBID_lbl ON
To_Update_Excel_r1.WO_ID = IDVolatilDBID_lbl.WO_ID
GROUP BY IDVolatilDBID_lbl.[W-Date], IDVolatilDBID_lbl.Planner
PIVOT IDVolatilDBID_lbl.User6;

--
KARL DEWEY
Build a little - Test a little


"ldiaz" wrote:

>
> Here is the SQL
> TRANSFORM Sum(IDVolatilDBID_lbl.Qty) AS SumOfQty
> SELECT IDVolatilDBID_lbl.[W-Date], IDVolatilDBID_lbl.Planner
> FROM To_Update_Excel_r1 INNER JOIN IDVolatilDBID_lbl ON
> To_Update_Excel_r1.WO_ID = IDVolatilDBID_lbl.WO_ID
> GROUP BY IDVolatilDBID_lbl.[W-Date], IDVolatilDBID_lbl.Planner
> PIVOT IDVolatilDBID_lbl.User6;
>
>
>
>
> "KARL DEWEY" wrote:
>
> > Post your SQL.
> > --
> > KARL DEWEY
> > Build a little - Test a little
> >
> >
> > "ldiaz" wrote:
> >
> > > I have a crosstab query that shows datas like this:
> > > W-Date Planner ACCY CONC POUCH
> > > 22-Oct-07 BAM-06 38 67 96
> > > 23-Oct-07 BAM-06 14 8 85
> > > 24-Oct-07 BAM-06 106 30 220
> > >
> > > where ACCY,CONC, POUCH is the "Column Heading" the query is working fine,
> > > but these datas are showed to the user using a subform, the problem is when
> > > in crosstab query appear a new Style, like TOC and do not appear ACCY or
> > > other it shows an error, because a field in sub-form was not found
> > >
> > > I think it's because the sub-form was built with previous datas and then
> > > when new datas appear it shows the error,
> > >
> > > how fix this?, or how shows datas to the user as read only but not using a
> > > sub-form or report because they aren't going to work
> > >
> > > Thanks
> > > LD
> > >
> > > --
> > > Lorenzo DÃ*az
> > > Cad Technician

 
Reply With Quote
 
=?Utf-8?B?bGRpYXo=?=
Guest
Posts: n/a
 
      26th Oct 2007
it shows an error
the specified field '[Qty]' could refer more that one table....


LD
"KARL DEWEY" wrote:

> Try this --
> TRANSFORM IIf(Sum([QTY]) Is Null," ",Sum([QTY])) AS Expr1
> SELECT IDVolatilDBID_lbl.[W-Date], IDVolatilDBID_lbl.Planner
> FROM To_Update_Excel_r1 INNER JOIN IDVolatilDBID_lbl ON
> To_Update_Excel_r1.WO_ID = IDVolatilDBID_lbl.WO_ID
> GROUP BY IDVolatilDBID_lbl.[W-Date], IDVolatilDBID_lbl.Planner
> PIVOT IDVolatilDBID_lbl.User6;
>
> --
> KARL DEWEY
> Build a little - Test a little
>
>
> "ldiaz" wrote:
>
> >
> > Here is the SQL
> > TRANSFORM Sum(IDVolatilDBID_lbl.Qty) AS SumOfQty
> > SELECT IDVolatilDBID_lbl.[W-Date], IDVolatilDBID_lbl.Planner
> > FROM To_Update_Excel_r1 INNER JOIN IDVolatilDBID_lbl ON
> > To_Update_Excel_r1.WO_ID = IDVolatilDBID_lbl.WO_ID
> > GROUP BY IDVolatilDBID_lbl.[W-Date], IDVolatilDBID_lbl.Planner
> > PIVOT IDVolatilDBID_lbl.User6;
> >
> >
> >
> >
> > "KARL DEWEY" wrote:
> >
> > > Post your SQL.
> > > --
> > > KARL DEWEY
> > > Build a little - Test a little
> > >
> > >
> > > "ldiaz" wrote:
> > >
> > > > I have a crosstab query that shows datas like this:
> > > > W-Date Planner ACCY CONC POUCH
> > > > 22-Oct-07 BAM-06 38 67 96
> > > > 23-Oct-07 BAM-06 14 8 85
> > > > 24-Oct-07 BAM-06 106 30 220
> > > >
> > > > where ACCY,CONC, POUCH is the "Column Heading" the query is working fine,
> > > > but these datas are showed to the user using a subform, the problem is when
> > > > in crosstab query appear a new Style, like TOC and do not appear ACCY or
> > > > other it shows an error, because a field in sub-form was not found
> > > >
> > > > I think it's because the sub-form was built with previous datas and then
> > > > when new datas appear it shows the error,
> > > >
> > > > how fix this?, or how shows datas to the user as read only but not using a
> > > > sub-form or report because they aren't going to work
> > > >
> > > > Thanks
> > > > LD
> > > >
> > > > --
> > > > Lorenzo DÃ*az
> > > > Cad Technician

 
Reply With Quote
 
=?Utf-8?B?S0FSTCBERVdFWQ==?=
Guest
Posts: n/a
 
      26th Oct 2007
I do not see how you could get that error but try this --
TRANSFORM IIf(Sum([IDVolatilDBID_lbl].[QTY]) Is Null,"
",Sum([IDVolatilDBID_lbl].[QTY])) AS Expr1
SELECT IDVolatilDBID_lbl.[W-Date], IDVolatilDBID_lbl.Planner
FROM To_Update_Excel_r1 INNER JOIN IDVolatilDBID_lbl ON
To_Update_Excel_r1.WO_ID = IDVolatilDBID_lbl.WO_ID
GROUP BY IDVolatilDBID_lbl.[W-Date], IDVolatilDBID_lbl.Planner
PIVOT IDVolatilDBID_lbl.User6;

--
KARL DEWEY
Build a little - Test a little


"ldiaz" wrote:

> it shows an error
> the specified field '[Qty]' could refer more that one table....
>
>
> LD
> "KARL DEWEY" wrote:
>
> > Try this --
> > TRANSFORM IIf(Sum([QTY]) Is Null," ",Sum([QTY])) AS Expr1
> > SELECT IDVolatilDBID_lbl.[W-Date], IDVolatilDBID_lbl.Planner
> > FROM To_Update_Excel_r1 INNER JOIN IDVolatilDBID_lbl ON
> > To_Update_Excel_r1.WO_ID = IDVolatilDBID_lbl.WO_ID
> > GROUP BY IDVolatilDBID_lbl.[W-Date], IDVolatilDBID_lbl.Planner
> > PIVOT IDVolatilDBID_lbl.User6;
> >
> > --
> > KARL DEWEY
> > Build a little - Test a little
> >
> >
> > "ldiaz" wrote:
> >
> > >
> > > Here is the SQL
> > > TRANSFORM Sum(IDVolatilDBID_lbl.Qty) AS SumOfQty
> > > SELECT IDVolatilDBID_lbl.[W-Date], IDVolatilDBID_lbl.Planner
> > > FROM To_Update_Excel_r1 INNER JOIN IDVolatilDBID_lbl ON
> > > To_Update_Excel_r1.WO_ID = IDVolatilDBID_lbl.WO_ID
> > > GROUP BY IDVolatilDBID_lbl.[W-Date], IDVolatilDBID_lbl.Planner
> > > PIVOT IDVolatilDBID_lbl.User6;
> > >
> > >
> > >
> > >
> > > "KARL DEWEY" wrote:
> > >
> > > > Post your SQL.
> > > > --
> > > > KARL DEWEY
> > > > Build a little - Test a little
> > > >
> > > >
> > > > "ldiaz" wrote:
> > > >
> > > > > I have a crosstab query that shows datas like this:
> > > > > W-Date Planner ACCY CONC POUCH
> > > > > 22-Oct-07 BAM-06 38 67 96
> > > > > 23-Oct-07 BAM-06 14 8 85
> > > > > 24-Oct-07 BAM-06 106 30 220
> > > > >
> > > > > where ACCY,CONC, POUCH is the "Column Heading" the query is working fine,
> > > > > but these datas are showed to the user using a subform, the problem is when
> > > > > in crosstab query appear a new Style, like TOC and do not appear ACCY or
> > > > > other it shows an error, because a field in sub-form was not found
> > > > >
> > > > > I think it's because the sub-form was built with previous datas and then
> > > > > when new datas appear it shows the error,
> > > > >
> > > > > how fix this?, or how shows datas to the user as read only but not using a
> > > > > sub-form or report because they aren't going to work
> > > > >
> > > > > Thanks
> > > > > LD
> > > > >
> > > > > --
> > > > > Lorenzo DÃ*az
> > > > > Cad Technician

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
cd drive shows in explorer that does not exist lil Windows Vista General Discussion 3 20th Mar 2007 02:35 AM
pc shows dvd drive that doesn't exist jeff scovronski Windows XP Help 1 21st Jan 2005 05:20 AM
FrontPage shows a web that doesn't exist =?Utf-8?B?Um9kSw==?= Microsoft Frontpage 4 6th Oct 2004 11:16 AM
.exe files shows error "the specified path does not exist" Larry Microsoft Windows 2000 File System 2 19th Sep 2003 09:57 PM
Win2k drive shows up... but doesn't exist Meyer Microsoft Windows 2000 Setup 0 16th Jul 2003 03:05 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:07 PM.