Page 2 of 2 FirstFirst 12
Results 16 to 16 of 16

Convert Private Function to Public Function

  1. #16
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Maybe your problem became one of using the Private keyword in a standard module as is suggested in post 12.
    I took post #12 that the OP was giving up and going back to code in the form's code module. I felt his desperation and posted my DB solution.

    Part of the problem was the OP's naming and confusion with Descrip and Description.

    Descrip is the name of the field in the table.
    Description is the name of the control bound to Descrip.
    Thus the calling argument could be either [Descrip] or Me.Description, but not Me.Descrip.

    I avoid these traps by naming my control textboxes with prefix txt, so it would have been txtDescrip to differentiate the difference.
    Last edited by davegri; 10-18-2018 at 06:00 AM. Reason: mo info

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

Similar Threads

  1. Private Function
    By UT227 in forum Programming
    Replies: 7
    Last Post: 05-03-2018, 08:47 AM
  2. Replies: 2
    Last Post: 02-10-2014, 06:41 AM
  3. Turning Private Function Into Public
    By g4tv4life in forum Programming
    Replies: 1
    Last Post: 02-04-2014, 04:31 PM
  4. Calling a Private Function from Another Form
    By MintChipMadness in forum Programming
    Replies: 1
    Last Post: 01-07-2013, 11:08 AM
  5. Replies: 9
    Last Post: 12-20-2010, 07:05 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
Tech Forums: Microsoft Office Forums