473,396 Members | 2,109 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Simple YES/NO Formatting question

121 100+
I think this is a simple question, but I couldn't find the answer looking through the previous posts.


I have table [ETL] that has data in it in a YES/NO format.
I append that table to another table [EXPORT] to then export the data. I need the YES/NO field to append to the [EXPORT] table as "Y' or "N".

I formatted the field in the [EXPORT] table as text (3 characters) but I get -1 or 0.
I can't figure out how to format the the data in the append query so I get Y/N.


Thanks in advance
Apr 11 '07 #1
7 2237
pks00
280 Expert 100+
u could create a query which selects all the fields then export that
eg

select field1, field2, iif(myyesnofld=true,"Y","N") as yesnofld, field3, etc
from mytable
Apr 11 '07 #2
JHNielson
121 100+
u could create a query which selects all the fields then export that
eg

select field1, field2, iif(myyesnofld=true,"Y","N") as yesnofld, field3, etc
from mytable

That would work.

First, could I put that command right in the append query. i.e. EXPR1: (if.....).

Second, how would I code that in the standard ACCESS Query design window?

Is there any other way, I would like to avoid the select query route if possible.
I kept wondering if there was a way using the Format() function.

Thanks,
Harte
Apr 11 '07 #3
pks00
280 Expert 100+
How is your query currently?
Is it a

insert into ... select ...
Apr 11 '07 #4
pks00
280 Expert 100+
In the append query's design view
in the field, change your field to have the iif in it

eg
say your field is called YNFld and table is called tblYN, then it would be


MyYN: IIf([tblYN].[YNFld]=True,"Y","N")
Apr 11 '07 #5
JHNielson
121 100+
In the append query's design view
in the field, change your field to have the iif in it

eg
say your field is called YNFld and table is called tblYN, then it would be


MyYN: IIf([tblYN].[YNFld]=True,"Y","N")

GREAT!! Thanks so much.
Apr 11 '07 #6
pks00
280 Expert 100+
No worries :)
Apr 11 '07 #7
Hi

For Yes/ No you try working this option ie

First table for Yes / No
In another table create Field where you want to create Yes / No option. - select the data type as Yes/No

Below there is option of General in that there is option of Format. in that option is combo box select yes/no option from the drop down list.

try this option, it might work.

thanks & bye

Kartik
Apr 12 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Ot | last post by:
I posted this to the wrong group. It went to m.p.dotnet.languages.vb. Ooops. -------------------------------------------------------------------- I have this tiny problem. I have learned...
3
by: Jouke Langhout | last post by:
Hello all! For quite some time now, I've got the following problem: Access won't close properly when a user closes the application. An ACCESS process stays active and that process can only be...
2
by: Colleyville Alan | last post by:
I am using Access and have embedded the ActiveX control Formula One that came with Office 2000. (ver 3.04). I have created and formatted a spreadsheet and now I want to copy the info with...
15
by: Richard Hollenbeck | last post by:
For example, one college course has only 24 students in it, but the following code says there are zero As, 20 Bs, 16 Cs, 4 Ds, and 8 Fs. When it prints it then says 0 As, 40 Bs, 32 Cs, 8 Ds, and...
1
by: Chris | last post by:
Sorry to ask such a simple question but here it is, and I'm am new to ASP/WEB I am designing a site and I want to make it general so I can easily change the font/color/sizes of the...
3
by: The Eeediot | last post by:
How do I get a number like "131" to appear in a currency format like "$131.00" in a TextBox control? I know it's simple but I cannot find how to do this in any reference manual. TIA....
4
by: hope | last post by:
Hi, How can I format a string field using Data Formatting Expression property in datagrid? For example: format last name from BROWN to Brown. Thanks
5
by: Burak | last post by:
Hello, I would like to format the string "11304200" into "11-3042.00". Can I do this with String.Format method? I have not come across any good documentation. Thank you,
7
by: Steven D'Aprano | last post by:
I have a sinking feeling I'm missing something really, really simple. I'm looking for a format string similar to '%.3f' except that trailing zeroes are not included. To give some examples: ...
2
by: RichB | last post by:
I am attempting to output a trace with details of the db id of a price using: Trace.WriteLine("price id(first price): {0}",evnt.Prices.Id); Wher the Id is a string. I expect from this to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.