PC Review


Reply
Thread Tools Rate Thread

Yes/No Format

 
 
=?Utf-8?B?ZW5yaWNvMTk4Mg==?=
Guest
Posts: n/a
 
      7th Jan 2005
I have set up a union query that displays a yes/no field. On the original
table the results show as a yes or a no, but in the query they show as a -1
or a 0. The best i have come up with is:

& Format ([UnitPass - Yes/No?],("Yes/No"))

but this shows as -1Yes and 0No.

In the same query there is a field that in the original table has a format
of "CD23-"# so CD23 goes infront of the number. This also messes up when
displayed in the query and just shows the number. I have tried:

& Format ([CD23TestNo],("&CD23-&"))

but this does the same: 1CD23-1, 2CD23-2 and so on.

Any help much appreciated.

Thanks
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWF0dF9GYWlyZmllbGQ=?=
Guest
Posts: n/a
 
      7th Jan 2005
hey
Question for you it seems like we are working on the same thing.

Can you update a Union query? so say in your query change a Yes to a no?
Thanks

"enrico1982" wrote:

> I have set up a union query that displays a yes/no field. On the original
> table the results show as a yes or a no, but in the query they show as a -1
> or a 0. The best i have come up with is:
>
> & Format ([UnitPass - Yes/No?],("Yes/No"))
>
> but this shows as -1Yes and 0No.
>
> In the same query there is a field that in the original table has a format
> of "CD23-"# so CD23 goes infront of the number. This also messes up when
> displayed in the query and just shows the number. I have tried:
>
> & Format ([CD23TestNo],("&CD23-&"))
>
> but this does the same: 1CD23-1, 2CD23-2 and so on.
>
> Any help much appreciated.
>
> Thanks

 
Reply With Quote
 
 
 
 
=?Utf-8?B?ZW5yaWNvMTk4Mg==?=
Guest
Posts: n/a
 
      7th Jan 2005
Sorry as far as i know, no. You can in a normal query but not in a union. I
have looked at the two in sql and there arn't any extra bits of code that
might set it.


"Matt_Fairfield" wrote:

> hey
> Question for you it seems like we are working on the same thing.
>
> Can you update a Union query? so say in your query change a Yes to a no?
> Thanks
>
> "enrico1982" wrote:
>
> > I have set up a union query that displays a yes/no field. On the original
> > table the results show as a yes or a no, but in the query they show as a -1
> > or a 0. The best i have come up with is:
> >
> > & Format ([UnitPass - Yes/No?],("Yes/No"))
> >
> > but this shows as -1Yes and 0No.
> >
> > In the same query there is a field that in the original table has a format
> > of "CD23-"# so CD23 goes infront of the number. This also messes up when
> > displayed in the query and just shows the number. I have tried:
> >
> > & Format ([CD23TestNo],("&CD23-&"))
> >
> > but this does the same: 1CD23-1, 2CD23-2 and so on.
> >
> > Any help much appreciated.
> >
> > Thanks

 
Reply With Quote
 
=?Utf-8?B?TWF0dF9GYWlyZmllbGQ=?=
Guest
Posts: n/a
 
      7th Jan 2005
Damn ok i was hopeing to just change some stuff in the Query so i wrote back
to there respective tables.
Hmm seems like i am going to have to find a different way!
Thanks

"enrico1982" wrote:

> Sorry as far as i know, no. You can in a normal query but not in a union. I
> have looked at the two in sql and there arn't any extra bits of code that
> might set it.
>
>
> "Matt_Fairfield" wrote:
>
> > hey
> > Question for you it seems like we are working on the same thing.
> >
> > Can you update a Union query? so say in your query change a Yes to a no?
> > Thanks
> >
> > "enrico1982" wrote:
> >
> > > I have set up a union query that displays a yes/no field. On the original
> > > table the results show as a yes or a no, but in the query they show as a -1
> > > or a 0. The best i have come up with is:
> > >
> > > & Format ([UnitPass - Yes/No?],("Yes/No"))
> > >
> > > but this shows as -1Yes and 0No.
> > >
> > > In the same query there is a field that in the original table has a format
> > > of "CD23-"# so CD23 goes infront of the number. This also messes up when
> > > displayed in the query and just shows the number. I have tried:
> > >
> > > & Format ([CD23TestNo],("&CD23-&"))
> > >
> > > but this does the same: 1CD23-1, 2CD23-2 and so on.
> > >
> > > Any help much appreciated.
> > >
> > > Thanks

 
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
Need help with converting CUSTOM format/TEXT format to DATE format Deo Cleto Microsoft Excel Worksheet Functions 6 2nd Jun 2009 08:14 PM
VBA: format, Format or FORMAT =?Utf-8?B?QkVFSkFZ?= Microsoft Excel Programming 7 30th Oct 2006 07:09 PM
Format Format Format.... PotGuy General 28 24th Jan 2006 08:41 PM
how to format excel format to text format with separator "|" in s. =?Utf-8?B?YXpsYW4=?= Microsoft Excel New Users 1 31st Jan 2005 01:57 PM
Changing windows media format to mp3 format John Windows XP General 1 24th Oct 2004 04:05 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:48 AM.