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 / Reports / Printing / April 2008

Tip: Looking for answers? Try searching our database.

Shipname, Shipaddress etc.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kokopops - 21 Apr 2008 16:35 GMT
Hello
In my report (which is an invoice) if the Shipname, Shipaddress etc are the
same as the Name, Address etc on the invoice I would like to just show "Same".
Is there an Iif statement that will do this?
Klatuu - 21 Apr 2008 17:21 GMT
There are a couple of ways you can do this.  The easiest (if you are not
familiar with VBA) is to use the Control Source property of each text box
where you display a shipper data element, for example, you probably have at
least two, one for shipper name and one for shipper address.  If you have
more, you will need to do it for each control:

=Iif([ShipName] = [Name], "Same", [ShipName])

=IIf([ShipAddress] = [Address], "Same", [ShipAddress])

Signature

Dave Hargis, Microsoft Access MVP

> Hello
> In my report (which is an invoice) if the Shipname, Shipaddress etc are the
> same as the Name, Address etc on the invoice I would like to just show "Same".
> Is there an Iif statement that will do this?
kokopops - 21 Apr 2008 18:05 GMT
This is what I had tried and thought I had made a mistake. It always replies
with the [Shipname] even if it is the same as the [Name]. There must be a
problem further back in my query or table. Thanks for your reply anyway.

> There are a couple of ways you can do this.  The easiest (if you are not
> familiar with VBA) is to use the Control Source property of each text box
[quoted text clipped - 5 lines]
>
> =IIf([ShipAddress] = [Address], "Same", [ShipAddress])
 
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



©2008 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.