Results 1 to 3 of 3
  1. #1
    charly.csh is offline Competent Performer
    Windows 8 Access 2007
    Join Date
    Nov 2014
    Posts
    186

    Function to delete infortmation contained into a textbox

    Hi everyone,



    I have this code that includes the name of people responsible for one department if I click on the "checkbox" Yes/No button, it adds the name of the person into the textbox

    But Now I want to delete the name of the person If I check this out

    Any suggestion how to do it?


    '****My Code****

    If Me.WT_Quality = -1 And Len(Me.EquipoM & vbNullString) = 0 Then

    Me.WorkTeam = DLookup("[Name]", "[Work_Team]", "[Departament]= 'Quality'")

    ElseIf Me.WT_Quality = -1 And Me.WorkTeam <> "" Then

    Me.WorkTeam = Me.WorkTeam & " " & vbCrLf & DLookup("[Name]", "[Work_Team]", "[Departamt]= 'Quality'")

    End If

    'Note.... I cannot just simple do something like If Me.WT_Quality = 0 Then Me.WorkTeam = "" because I have more names included into the same textbox

    '*******SECOND PART AND THE QUESTION********

    If Me.WT_Quality = 0 Then

    Me.TeamWorktxt =
    DLookup("[Name]", "[Team_Work]", "[Departament]= 'Quality'" 'What would be the function to take the name out? Just to take out the name of the Quality guy and not of the others...

    'THANK YOU VERY MUCH FOR THE HELP!!!



  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    charly.csh is offline Competent Performer
    Windows 8 Access 2007
    Join Date
    Nov 2014
    Posts
    186
    Oh no sorry!!!
    I just thought you were busy :$ :$

    and I highly happy to see that this is working pretty fantastic!!!

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

Similar Threads

  1. Code/function needed delete an external text file
    By Chris033115 in forum Programming
    Replies: 6
    Last Post: 03-31-2015, 02:09 PM
  2. Replies: 19
    Last Post: 04-25-2012, 01:50 PM
  3. Duplicate query with complex delete function
    By rushforth in forum Queries
    Replies: 9
    Last Post: 08-20-2010, 01:21 AM
  4. Replies: 2
    Last Post: 08-09-2010, 08:13 AM
  5. Delete record function
    By Evgeny in forum Programming
    Replies: 6
    Last Post: 04-12-2010, 09:19 PM

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