Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Kev0360 is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Feb 2014
    Posts
    6

    Question Desktop services template - help with Text

    I have downloaded this and set up everything OK.



    The one thing I am unable to do is change the control MyContactInfo which appears on the quote and invoice reports.

    It insists on putting "Fax" instead of "email" as the company info underneath the company name. Is this produced with a macro?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Blast! This is a web database. Do you really need a web db?

    I opened the Quote and Invoice reports in Layout view, clicked on the Fax label, changed the caption to Email, saved the report.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Kev0360 is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Feb 2014
    Posts
    6

    Desktop services template - help with Text

    If I open the quote or invoice report, the part where the phone and email are doesn't have a label - just the Control Source MyContactInfo

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Not what I see. I see labels Phone and Fax (now Email). Cannot replicate issue. If you want to provide db, I will look at.

    How do you open the report? I can't find a button for this so I just opened from navigation pane and enter past all the prompts.

    EDIT: Found it, let me do some more looking.

    Here it is: Need to change the QuoteClientOnly and InvoiceClientOnly reports as well.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    Kev0360 is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Feb 2014
    Posts
    6

    Desktop services template - help with Text

    I have tried another download using their default database, the problem appears to be that it puts the word Fax in regardless of whether it has been entered followed by the email address. Just a bug I think, There are definitely no labels to edit?

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I edited my previous post. Yes, there are labels to edit. There are 4 reports.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    @June,

    Didn't know this was a web database .Yechhhh!!!

    The OP is looking at his company info, not the client info

    I finally found where the query field "MyContactInfo" is being generated.


    The InvoiceDetails has a field "MyContactInfo: [prmMyContactInfo]"

    It looks like this is generated in the "INVOICE" macro. (this goes for the QUOTE macro also)
    SubMacro ViewInvoice

    SetTempVar: tmpMyContactInfo

    Expression: IIf(IsNull([TempVars]![tmpCompanyPhone]),"","Phone " & [TempVars]![tmpCompanyPhone]) & IIf(IsNull([TempVars]![tmpCompanyFax]),""," Fax " & [TempVars]![tmpCompanyFax]) & IIf(IsNull([TempVars]![tmpCompanyEmail]),""," " & [TempVars]![tmpCompanyEmail])

    I really hate macros.......

  8. #8
    Kev0360 is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Feb 2014
    Posts
    6

    Desktop services template - help with Text

    Superb, thank you both for the help. I have edited the word Fax to say Email. Job done

  9. #9
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Ooops, glad you stepped in Steve.

    But shouldn't the string have both Fax and Email?

    Expression: IIf(IsNull([TempVars]![tmpCompanyPhone]),"","Phone " & [TempVars]![tmpCompanyPhone]) & IIf(IsNull([TempVars]![tmpCompanyFax]),""," Fax " & [TempVars]![tmpCompanyFax]) & IIf(IsNull([TempVars]![tmpCompanyEmail]),""," Email " & [TempVars]![tmpCompanyEmail])
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  10. #10
    Kev0360 is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Feb 2014
    Posts
    6

    Desktop services template - help with Text

    Probably should but who uses fax these days!!!

  11. #11
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Blast again! Why won't it let me add that text to the expression? Ahh, seems to be too many characters in the expression.

    I know, but putting Email in front of a phone number doesn't make sense.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  12. #12
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Then if you don't have a fax, I would take out the IIF() for the fax.

    Also, I wouldn't use IsNull() function. I would use Len() and Trim() functions.

    Expression: IIf(Len(Trim([TempVars]![tmpCompanyPhone]))=0,"","Phone " & [TempVars]![tmpCompanyPhone]) & IIf(Len(trim([TempVars]![tmpCompanyFax]))=0,""," Fax " & [TempVars]![tmpCompanyFax]) & IIf(Len(Trim([TempVars]![tmpCompanyEmail])),""," Email " & [TempVars]![tmpCompanyEmail])

    I think what is (was?) happening is that when the fax number was removed, it resulted in a null string for the fax number. Since a null string is not a NULL, the word "Fax" and the null string for the fax number was being displayed.

    Using "Len(Trim(someField))=0 " checks for both a NULL and a Null String.

  13. #13
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Whoops... I just saw June's post about the length problem...... I really, really hate macros.
    ...11 chars too many.

    So... back to "I would take out the IIF() for the fax."

  14. #14
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    If these contact info data are required in the table, then the IIfs would be unnecessary. However, if want to leave them optional, need to make some decisions. Maybe eliminate Fax or shorten the TempVars variable names.

    Or don't use web db design and switch over to VBA for all code.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  15. #15
    Kev0360 is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Feb 2014
    Posts
    6

    Desktop services template - help with Text

    Quote Originally Posted by June7 View Post
    Blast again! Why won't it let me add that text to the expression? Ahh, seems to be too many characters in the expression.

    I know, but putting Email in front of a phone number doesn't make sense.
    That is true but if the fax details are left blank it just looks like Email then the mail address

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 9
    Last Post: 01-27-2014, 12:19 AM
  2. Desktop Time and Billing Template with VAT
    By Jazz Man in forum Access
    Replies: 3
    Last Post: 11-12-2013, 04:23 PM
  3. Replies: 5
    Last Post: 08-21-2013, 07:02 AM
  4. Replies: 1
    Last Post: 08-14-2013, 06:29 PM
  5. Replies: 2
    Last Post: 03-30-2012, 02:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums