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
7 2237
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
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
How is your query currently?
Is it a
insert into ... select ...
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")
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.
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
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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....
|
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
|
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,
|
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:
...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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...
|
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,...
|
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...
|
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...
|
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...
| |