Results 1 to 3 of 3
  1. #1
    Miles R is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Mar 2019
    Posts
    176

    Where is VBA code for a new form


    Probably an obvious question, but I've just created a new form in my project, but can't seem to find the VBA code for it.
    It is not in the Object List when I go into the Visual Basic database tools.
    Must be something I'm missing, as I've created loads of forms before.

  2. #2
    Miles R is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Mar 2019
    Posts
    176
    Ok, just solved this one.
    You must create an event such as Load, which then creates the code for the form.

  3. #3
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,654
    Or you can set the Has Module property to yes. (which happens when you create an event)

    Click image for larger version. 

Name:	Capture.PNG 
Views:	13 
Size:	7.3 KB 
ID:	50578
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

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

Similar Threads

  1. Replies: 15
    Last Post: 03-13-2022, 04:28 PM
  2. Replies: 8
    Last Post: 07-03-2015, 05:03 PM
  3. Replies: 3
    Last Post: 10-16-2014, 08:49 AM
  4. Replies: 6
    Last Post: 09-02-2012, 04:30 PM
  5. Replies: 3
    Last Post: 07-20-2012, 11:41 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