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 / Forms Programming / August 2005

Tip: Looking for answers? Try searching our database.

Remove Fields In an Address Label

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sean - 03 Aug 2005 04:54 GMT
If Have a text box with  names and addresses, I would like to remove the
Wifes surname where the Husbands Surname = Wifes Surname

[HusbandFirstName] &" and " & [WifeFirstName]
[HusbandsSurname] & Trim((" "+[WifesSurname]) IIF [HusbandsSurname]=
[WifesSurname])

I realize thats probably a real mess but hopefully it will give you an idea
of what I'm trying to do

Thanks Sean
Ron Weiner - 03 Aug 2005 12:29 GMT
Sean, is this what you mean:

IIf([Husbands Surname] = [Wifes Surname],  _
  [HusbandFirstName] & " and " &  [WifeFirstName] & _
    " " & [Husbands Surname], _
  [HusbandFirstName] &" " & [Husbands Surname] & _
    " / " &  [WifeFirstName] & " " & [WifesSurname])

Would output
   Bill and Mary Smith
   Bill Smith / Mary Jones

Ron W
www.WorksRite.com

> If Have a text box with  names and addresses, I would like to remove the
> Wifes surname where the Husbands Surname = Wifes Surname
[quoted text clipped - 7 lines]
>
> Thanks Sean
 
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.