Results 1 to 3 of 3
  1. #1
    Gavroche is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    7

    Code issue on Format of label

    Hi all,



    In my label, I have a text box that displays the following three fields:

    =Trim([Entree] & " " & [Dressing] & " " & [Bread]), all text fields.

    I have the following code:

    Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
    If Me.txtDressingID = 5 Then


    I would like the field [dressing] (string) to show nothing. Right now it says "none", but I actually want no characters displayed and I forgot how to do this.

    Thank you for all your help

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Try
    Code:
    If Me.txtDressingID = 5 Then
    Me.Dressing.Value = ""

  3. #3
    Gavroche is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    7
    Thank you Alan,

    Unfortunately that didn't work. I had thought of that before. I believe that this the field dressing [dressing] is part of a bigger textbox, the actual code must involve the text box, but I forgot how to do it.

    I have tried me.text4.dressing.value = "" etc... to no avail.

    Thanks

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Date format issue
    By di.miller in forum Queries
    Replies: 3
    Last Post: 03-17-2011, 09:36 AM
  2. American/European date format issue
    By dantnz in forum Programming
    Replies: 2
    Last Post: 12-09-2010, 03:17 PM
  3. Format Issue
    By trueblue7 in forum Reports
    Replies: 4
    Last Post: 12-04-2010, 10:50 PM
  4. Replies: 1
    Last Post: 03-24-2010, 02:25 PM
  5. Access 2007: Percent Format Issue
    By diane802 in forum Access
    Replies: 6
    Last Post: 12-30-2009, 10:29 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