Results 1 to 4 of 4
  1. #1
    ntambomvu is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Location
    Johannesburg south africa
    Posts
    91

    using application parts

    Hello Everyone.
    I am working through a microsoft tutorial and am stuck at "adding an application part"
    I have created a new application called "Junk.accdb" and have used "create" "templates"


    "application parts" to generate a table called "contacts"
    everything went fine to table is there in the nav. panel and it works. But "database tools"
    "visual basic" doesnt show any code?/
    How can I get to the code?
    many thanks
    Fred

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    it may not have code. most forms can work with data sans code.
    but also, occasionally the db will glitch and tell you it is going to erase all the code. and it does.

    but to get to the VBE (visual basic environment, the code) press ALT-F11

    you can also see the code by selecting the control in design view, see the properties, see the events.
    the event will have EVENT PROCEDURE on the line.
    click the ellipsis button at the far right of the line to see the code for THAT event.

  3. #3
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,974
    Tables are used to store data and do not contain code.
    If all you have done so far is add a table then there will be no code.

    Forms and reports can contain code as well as standard/class modules.

    Of course, its also possible to use macros to run form/report events - either saved macros or embedded macros
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Code is not automatically created when objects are built.

    There are 2 basic ways to program in Access: macros and VBA.

    Macros can be saved, embedded, or associated with table (the last is called Data Macro).

    VBA modules can be associated with forms or reports or can be independent.

    I have used regular macro only once and never use embedded macros nor Data Macros.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Parts List on Parts Requisition Report
    By billgyrotech1 in forum Access
    Replies: 16
    Last Post: 06-03-2019, 01:17 PM
  2. Replies: 2
    Last Post: 02-27-2016, 10:59 AM
  3. Replies: 1
    Last Post: 08-27-2015, 06:05 AM
  4. Replies: 4
    Last Post: 01-05-2014, 02:09 PM
  5. Replies: 3
    Last Post: 08-02-2012, 11:37 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