Results 1 to 2 of 2
  1. #1
    Jgk is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Feb 2014
    Posts
    46

    Event Procedure for on load event for Form

    I am using Denis Wright's Permission VBA code and would like to pass the txtcontractor to a form on load event. The form has txtcontractor on it and pulls the information correctly, however, I do not have the go to record command. The startup form is frmMenu and the field name is txt contractor
    the form I am trying to open with the load event is frmContractor and the field on form is contractor.

    frmMenu- field txtcontractor is a unbound field txt



    frmContractor - field Contractor is a txt field

    Thanks in advance for your assistance

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    If I recall correctly, this is the syntax for referring to a control's value when the control resides on another form.

    Forms!frmFormName!txtControlName.Value

    You will need to use a different syntax if the control resides within a subform of another form.

    http://access.mvps.org/access/forms/frm0031.htm

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

Similar Threads

  1. Form Load Event
    By shah1419 in forum Forms
    Replies: 5
    Last Post: 01-13-2013, 12:42 PM
  2. Replies: 5
    Last Post: 08-22-2012, 07:32 AM
  3. Replies: 3
    Last Post: 05-07-2012, 12:17 PM
  4. 'After update' Event procedure
    By sk88 in forum Access
    Replies: 5
    Last Post: 08-30-2011, 02:51 PM
  5. On Click Event Procedure
    By MrDean in forum Forms
    Replies: 3
    Last Post: 10-07-2009, 07:16 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