Results 1 to 5 of 5
  1. #1
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664

    What is this difference between these?

    In the file that I have attached is a db that I know works. I am curious as to what is the difference between chkTicketAssigned and ysnTicketAssigned. The are in the form HelpTeskTickets.



    I know that chkTicketAssigned is the name of a Sub, but is it used any other way? I also know ysnTicketAssigned is a control. The db works fine.

    Any help appreciated. Thanks in advance.
    Attached Files Attached Files

  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
    chkTicketAssigned is a checkbox control on the form. ysnTicketAssigned is a field in the table. The checkbox is bound to the field, so changing the value of the checkbox changes the value of the field in the table.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    By the way, both of these statements are incorrect: "I know that chkTicketAssigned is the name of a Sub...I also know ysnTicketAssigned is a control.". The control is named "chkTicketAssigned", the sub is "chkTicketAssigned_AfterUpdate()". The "AfterUpdate" bit indicates which event of the control it is. "ysnTicketAssigned" is a field in the table, represented by the control.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Okay, the Sub is named as you said is named chkTicketAssigned_AfterUpdate. Thus the part check chkTicketAssigned is control, could it be a method?

    You are right about ysnTicketAssigned . I apologize for the error. It does seem that they do similar things.

    I would have used a different naming convention.

    R,

    Lou Reed

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Quote Originally Posted by Lou_Reed View Post
    Thus the part check chkTicketAssigned is control, could it be a method?
    Not sure what you're asking. It is a control, not a method. This shows the events and methods associated with the checkbox control:

    https://msdn.microsoft.com/en-us/lib.../ff194967.aspx
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. SQL Subselect difference between
    By NCepeda in forum Queries
    Replies: 3
    Last Post: 02-26-2016, 06:52 PM
  2. Calculate difference from last value
    By dilbert in forum Reports
    Replies: 4
    Last Post: 01-17-2016, 08:06 AM
  3. Difference between Expression
    By zbaker in forum Access
    Replies: 4
    Last Post: 11-17-2014, 11:20 AM
  4. Get difference of Min and Max
    By nazimscr in forum Queries
    Replies: 1
    Last Post: 07-14-2012, 02:04 PM
  5. Mark the difference
    By zhshqzyc in forum Access
    Replies: 1
    Last Post: 01-28-2011, 08:49 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