Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / January 2008

Tip: Looking for answers? Try searching our database.

Expression in Query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ty - 11 Jan 2008 16:05 GMT
How to create Expr in Query Field1/Field2 if Field 2 is zero return Field1?
Wayne-I-M - 11 Jan 2008 16:22 GMT
SomeName:  IIf ( [TableName]![Field2] = 0 , [TableName]![Field1] /
[TableName]![Field2] , [TableName]![Field1] )

Signature

Wayne
Manchester, England.

> How to create Expr in Query Field1/Field2 if Field 2 is zero return Field1?
KARL DEWEY - 11 Jan 2008 16:26 GMT
Maybe like this ---
SomeName:  IIf ( [TableName]![Field2] = 0 , [TableName]![Field1],  
[TableName]![Field1] / [TableName]![Field2] )

Signature

KARL DEWEY
Build a little - Test a little

> SomeName:  IIf ( [TableName]![Field2] = 0 , [TableName]![Field1] /
> [TableName]![Field2] , [TableName]![Field1] )
>
> > How to create Expr in Query Field1/Field2 if Field 2 is zero return Field1?
Wayne-I-M - 11 Jan 2008 16:30 GMT
ooops - yes you're right.

Signature

Wayne
Manchester, England.

> Maybe like this ---
> SomeName:  IIf ( [TableName]![Field2] = 0 , [TableName]![Field1],  
[quoted text clipped - 4 lines]
> >
> > > How to create Expr in Query Field1/Field2 if Field 2 is zero return Field1?
Ty - 11 Jan 2008 17:01 GMT
Thank you very much!

> ooops - yes you're right.
>
[quoted text clipped - 6 lines]
> > >
> > > > How to create Expr in Query Field1/Field2 if Field 2 is zero return Field1?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.