A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

#Name?



 
 
Thread Tools Display Modes
  #1  
Old May 4th, 2010, 08:36 PM posted to microsoft.public.access.tablesdbdesign
tighe
external usenet poster
 
Posts: 53
Default #Name?

i have a form based on a crosstab query that sums on threee possible types
A, B or C. on the form the field for B shows #Name?, if B does not exist.
this is ok but i need it to show 0, any suggestions?

i tried playng with the query, but no luck there by adding a Type table.
  #2  
Old May 4th, 2010, 09:18 PM posted to microsoft.public.access.tablesdbdesign
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default #Name?

You could use this --
My Stuff: IIf([b] Is Null,0,[b])

But it will prompt for [b] if it does not exist.

--
Build a little, test a little.


"tighe" wrote:

i have a form based on a crosstab query that sums on threee possible types
A, B or C. on the form the field for B shows #Name?, if B does not exist.
this is ok but i need it to show 0, any suggestions?

i tried playng with the query, but no luck there by adding a Type table.

  #3  
Old May 4th, 2010, 11:02 PM posted to microsoft.public.access.tablesdbdesign
tighe
external usenet poster
 
Posts: 53
Default #Name?

Karl,
thanks for the response, the #name? was appearing becasue of the
non-existence of [b].

i ended up adding a parameter to the crosstab queury, more than likely [b]
will exist for the whole office.

"KARL DEWEY" wrote:

You could use this --
My Stuff: IIf([b] Is Null,0,[b])

But it will prompt for [b] if it does not exist.

--
Build a little, test a little.


"tighe" wrote:

i have a form based on a crosstab query that sums on threee possible types
A, B or C. on the form the field for B shows #Name?, if B does not exist.
this is ok but i need it to show 0, any suggestions?

i tried playng with the query, but no luck there by adding a Type table.

  #4  
Old May 5th, 2010, 12:34 AM posted to microsoft.public.access.tablesdbdesign
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default #Name?

Did you consider modifying the PIVOT statement to include [b] at all times
like this --
PIVOT YourCurrentValue IN("A", "B", "C", "D", ... )

They will appear and in the exact order you put them in the parenthesis.

--
Build a little, test a little.


"tighe" wrote:

Karl,
thanks for the response, the #name? was appearing becasue of the
non-existence of [b].

i ended up adding a parameter to the crosstab queury, more than likely [b]
will exist for the whole office.

"KARL DEWEY" wrote:

You could use this --
My Stuff: IIf([b] Is Null,0,[b])

But it will prompt for [b] if it does not exist.

--
Build a little, test a little.


"tighe" wrote:

i have a form based on a crosstab query that sums on threee possible types
A, B or C. on the form the field for B shows #Name?, if B does not exist.
this is ok but i need it to show 0, any suggestions?

i tried playng with the query, but no luck there by adding a Type table.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:26 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.