Correct syntax for Criteria in Design View

Kurt

Well-known Member
Joined
Jul 23, 2002
Messages
1,664
I have several fields in an Access database.

I want to display just records greater than 0.

For one field I have the following:

Field: PYTD_GP
Table
Total: Where
Criteria: Abs([PYTD_GP])
[PYTD_GP]>0

Is this the correct syntax?

Thanks for any and all help.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
If you put the Criteria in the Criteria box under the field itself, you do not need to explicitly reference that field name again. Just use:
Code:
> 0
 
Upvote 0
If you put the Criteria in the Criteria box under the field itself, you do not need to explicitly reference that field name again. Just use:
Code:
> 0

That is the next thing I tried after I posted this message and yes it works.

Smitty also showed this to me yesterday!

Have a great weekend! :)

Thanks!
 
Upvote 0

Forum statistics

Threads
1,221,834
Messages
6,162,268
Members
451,758
Latest member
lmcquade91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top