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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Changing Fields



 
 
Thread Tools Display Modes
  #1  
Old June 7th, 2004, 01:45 AM
Can I do this
external usenet poster
 
Posts: n/a
Default Changing Fields

I have Three Field:

A, B, C

A = 1

B = 0

C = Null

Any way from Access to Change C field to 100 if B field is
0 and C field to 0 if B = 100.

Thanks Kindly,


  #2  
Old June 7th, 2004, 02:18 AM
Mike Painter
external usenet poster
 
Posts: n/a
Default Changing Fields


"Can I do this" wrote in message
...
I have Three Field:

A, B, C

A = 1

B = 0

C = Null

Any way from Access to Change C field to 100 if B field is
0 and C field to 0 if B = 100.

Yes with an update query but if those are the only two choice there is no
need for field C.
Use a query with C: IFF( B = 0, 100, 0)


  #3  
Old June 7th, 2004, 02:27 AM
external usenet poster
 
Posts: n/a
Default Changing Fields

Where can you do a update query? I am very novice, I am
usually using VB and don't have to deal with Access
directly.
-----Original Message-----

"Can I do this"

wrote in message
...
I have Three Field:

A, B, C

A = 1

B = 0

C = Null

Any way from Access to Change C field to 100 if B field

is
0 and C field to 0 if B = 100.

Yes with an update query but if those are the only two

choice there is no
need for field C.
Use a query with C: IFF( B = 0, 100, 0)


.

  #4  
Old June 7th, 2004, 03:57 AM
Larry Linson
external usenet poster
 
Posts: n/a
Default Changing Fields

On the database window, click the Queries tab, then click New, add the
table, create a SELECT Query, run it to make sure it brings back the fields
you want, then on the Menu, Query | Update, and put the expressions in the
UpdateTo line.

If I am doing anything of any size like this, I do it on a _copy_ of the DB
until I am certain that it went OK.

Larry Linson
Microsoft Access MVP



wrote in message
...
Where can you do a update query? I am very novice, I am
usually using VB and don't have to deal with Access
directly.
-----Original Message-----

"Can I do this"

wrote in message
...
I have Three Field:

A, B, C

A = 1

B = 0

C = Null

Any way from Access to Change C field to 100 if B field

is
0 and C field to 0 if B = 100.

Yes with an update query but if those are the only two

choice there is no
need for field C.
Use a query with C: IFF( B = 0, 100, 0)


.



 




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 01:33 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.