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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Compare 2 Fields



 
 
Thread Tools Display Modes
  #1  
Old March 11th, 2010, 02:00 PM posted to microsoft.public.access.queries
Carl
external usenet poster
 
Posts: 473
Default Compare 2 Fields

My data looks like this:

Sym Price1 Price2
A 11.3 11.3
B 8.75 8.75
C 7.8 7.8
D 6.75 6.75
E 5.75 5.75

I would like to create a new field that will compare Price1 to Price2 and
return the difference between the 2 fields.

Is this something that can be done in Access ?

Thank you in advance


  #2  
Old March 11th, 2010, 02:53 PM posted to microsoft.public.access.queries
chris
external usenet poster
 
Posts: 2,039
Default Compare 2 Fields

Absolutely. Make sure when you create your table, that Price1 and Price2 are
numeric. Then, when you create a query, build an expression something like
this:
Bal:Price1 - Price2 in the query grid field.

"carl" wrote:

My data looks like this:

Sym Price1 Price2
A 11.3 11.3
B 8.75 8.75
C 7.8 7.8
D 6.75 6.75
E 5.75 5.75

I would like to create a new field that will compare Price1 to Price2 and
return the difference between the 2 fields.

Is this something that can be done in Access ?

Thank you in advance


 




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 11:41 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.