PC Review


Reply
Thread Tools Rate Thread

changing data that is uploaded into a table

 
 
=?Utf-8?B?TWVyZ2U=?=
Guest
Posts: n/a
 
      4th Nov 2006
I have a form(word doc) that I am uploading into Access
I have a few check boxes. If the box is checked off it will populate a 1. If
the box isn't checked off it will populate a 0

In the field I would like to convert the 1 to a yes and the 0 to a blank
field.

Where and how do I do this

Thanks
 
Reply With Quote
 
 
 
 
strive4peace
Guest
Posts: n/a
 
      4th Nov 2006
Hi Merge,

actually, I believe it will store -1 and 0...

why not store the information as Yes/No (which is actually a numeric
field) and then use something like this to show words:

IIF([fieldname]=true,"yes","")

if you do not want to use a checkbox (I personally like this the best),
you can also use a textbox control and format it to show positive
numbers as empty string, negative numbers as "Yes", zeros as empty string

Format --> "";"Yes";""

on format code -- there are 4 parts (for numbers)
1. format for positive numbers
2. format for negative numbers
3. format for 0 (zero)
4. format for null

ie:

Format --> #,##0;[red]-#,##0;0;0

for more help on Format, press the F1 key in that property on the
property sheet

Warm Regards,
Crystal
*
(: have an awesome day
*
MVP Access
Remote Programming and Training
strive4peace2006 at yahoo.com
*



Merge wrote:
> I have a form(word doc) that I am uploading into Access
> I have a few check boxes. If the box is checked off it will populate a 1. If
> the box isn't checked off it will populate a 0
>
> In the field I would like to convert the 1 to a yes and the 0 to a blank
> field.
>
> Where and how do I do this
>
> Thanks

 
Reply With Quote
 
=?Utf-8?B?VGltIEpvaG5zb24=?=
Guest
Posts: n/a
 
      4th Nov 2006
Another option you have is open the table in design mode, change the field
you want shown as a check box to a text field, save it, then change it back
to a yes/no field & save it again. I strongly recommend backing up your data
first, just in case, but I've used this to change fields at the table level
from -1 & 0 to check boxes (although, if you place a checkbox in a form and
use this field as the control source, it will display and store the data
correctly regardless).

"strive4peace" wrote:

> Hi Merge,
>
> actually, I believe it will store -1 and 0...
>
> why not store the information as Yes/No (which is actually a numeric
> field) and then use something like this to show words:
>
> IIF([fieldname]=true,"yes","")
>
> if you do not want to use a checkbox (I personally like this the best),
> you can also use a textbox control and format it to show positive
> numbers as empty string, negative numbers as "Yes", zeros as empty string
>
> Format --> "";"Yes";""
>
> on format code -- there are 4 parts (for numbers)
> 1. format for positive numbers
> 2. format for negative numbers
> 3. format for 0 (zero)
> 4. format for null
>
> ie:
>
> Format --> #,##0;[red]-#,##0;0;0
>
> for more help on Format, press the F1 key in that property on the
> property sheet
>
> Warm Regards,
> Crystal
> *
> (: have an awesome day
> *
> MVP Access
> Remote Programming and Training
> strive4peace2006 at yahoo.com
> *
>
>
>
> Merge wrote:
> > I have a form(word doc) that I am uploading into Access
> > I have a few check boxes. If the box is checked off it will populate a 1. If
> > the box isn't checked off it will populate a 0
> >
> > In the field I would like to convert the 1 to a yes and the 0 to a blank
> > field.
> >
> > Where and how do I do this
> >
> > Thanks

>

 
Reply With Quote
 
=?Utf-8?B?TWVyZ2U=?=
Guest
Posts: n/a
 
      4th Nov 2006
Thank you


"strive4peace" wrote:

> Hi Merge,
>
> actually, I believe it will store -1 and 0...
>
> why not store the information as Yes/No (which is actually a numeric
> field) and then use something like this to show words:
>
> IIF([fieldname]=true,"yes","")
>
> if you do not want to use a checkbox (I personally like this the best),
> you can also use a textbox control and format it to show positive
> numbers as empty string, negative numbers as "Yes", zeros as empty string
>
> Format --> "";"Yes";""
>
> on format code -- there are 4 parts (for numbers)
> 1. format for positive numbers
> 2. format for negative numbers
> 3. format for 0 (zero)
> 4. format for null
>
> ie:
>
> Format --> #,##0;[red]-#,##0;0;0
>
> for more help on Format, press the F1 key in that property on the
> property sheet
>
> Warm Regards,
> Crystal
> *
> (: have an awesome day
> *
> MVP Access
> Remote Programming and Training
> strive4peace2006 at yahoo.com
> *
>
>
>
> Merge wrote:
> > I have a form(word doc) that I am uploading into Access
> > I have a few check boxes. If the box is checked off it will populate a 1. If
> > the box isn't checked off it will populate a 0
> >
> > In the field I would like to convert the 1 to a yes and the 0 to a blank
> > field.
> >
> > Where and how do I do this
> >
> > Thanks

>

 
Reply With Quote
 
strive4peace
Guest
Posts: n/a
 
      4th Nov 2006
you're welcome, Merge happy to help

Warm Regards,
Crystal
*
(: have an awesome day
*
MVP Access
Remote Programming and Training
strive4peace2006 at yahoo.com
*



Merge wrote:
> Thank you
>
>
> "strive4peace" wrote:
>
>> Hi Merge,
>>
>> actually, I believe it will store -1 and 0...
>>
>> why not store the information as Yes/No (which is actually a numeric
>> field) and then use something like this to show words:
>>
>> IIF([fieldname]=true,"yes","")
>>
>> if you do not want to use a checkbox (I personally like this the best),
>> you can also use a textbox control and format it to show positive
>> numbers as empty string, negative numbers as "Yes", zeros as empty string
>>
>> Format --> "";"Yes";""
>>
>> on format code -- there are 4 parts (for numbers)
>> 1. format for positive numbers
>> 2. format for negative numbers
>> 3. format for 0 (zero)
>> 4. format for null
>>
>> ie:
>>
>> Format --> #,##0;[red]-#,##0;0;0
>>
>> for more help on Format, press the F1 key in that property on the
>> property sheet
>>
>> Warm Regards,
>> Crystal
>> *
>> (: have an awesome day
>> *
>> MVP Access
>> Remote Programming and Training
>> strive4peace2006 at yahoo.com
>> *
>>
>>
>>
>> Merge wrote:
>>> I have a form(word doc) that I am uploading into Access
>>> I have a few check boxes. If the box is checked off it will populate a 1. If
>>> the box isn't checked off it will populate a 0
>>>
>>> In the field I would like to convert the 1 to a yes and the 0 to a blank
>>> field.
>>>
>>> Where and how do I do this
>>>
>>> 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
Changing way Outlook displays dates in messages uploaded Gary Microsoft Outlook Discussion 0 25th Jul 2008 01:28 PM
Changing the path of uploaded pics from my computer Rolf Microsoft Frontpage 7 23rd May 2008 12:17 AM
Data entry form changing the table data Martin Osborne Microsoft Access Forms 3 8th Mar 2006 09:47 PM
CONTENT TOO FAR LEFT IN BROWSER ONCE UPLOADED; NOT IN A TABLE! =?Utf-8?B?UkMgaW4gTlk=?= Microsoft Frontpage 8 2nd Jan 2006 11:47 PM
changing data in a table being used as the data source for an open form Sarah Microsoft Access VBA Modules 1 3rd Feb 2004 10:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:22 PM.