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

    A Diffcul;t Chapter in Access VBA Programing for Dummies.

    I have been reading the book by Alan Simpson, "Access VBA programming for Dummies".

    I have read it and reread it. I believe that the most difficult chapter is Chapter 10:

    Customizing Lists and Drop Down Menus; the rest is basic stuff that any programmer
    can understand. Chapter 10 is different. It is not basic that is for sure.

    It is by far the hardest for someone new to Access 2010 VBA programming to grasp.

    Therefore I am doing some of the code examples that are in that chapter.

    That is where I have run into trouble. Some are just code fragments so it is hard to get


    them in any shape to run.

    That is why I posted some Access VBA code in a separate post earlier today.

    So much of the results of the programming results is not output that I or any other programmer is used to seeing.

    If I may, could I post some of examples that seem not to run? I am using a leftover database donated to me
    by coworker that is no longer relevant to our organization, but to me it could be useful.

    Jus let know if this is okay.

    Please reply soon.

    Respectfully,


    Lou Reed

  2. #2
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    You have to use the code in the context that is being explained, you cannot separate it from the rest of the chapter. If it is a stand-alone piece of code then you can start a new module, paste it into it (with Function before and End Function after) and you can run it with the Run command (or f5). If however the code refers to objects, such as your previous post which referred to objects on a form or report, then you need to read what the chapter is telling you and follow the instructions.

  3. #3
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    I know that. I just cannot run code fragments whenever I see them in a book. But if I can
    use in my sample db then it will be much easier to understand when I get the code working. I
    am a programmer. Just reading about a new language just will not get it. You must program in it to understand it.

    But if I hit some errors along the way. I do want to understand them as best as I could.

    Hence the question in post no 1.

    Respectfully,

    Lou_Reed

  4. #4
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    I know it is frustrating, but you maybe need to slow down a little, follow their examples and then you can copy it into your own database with your own controls and design requirements.

  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,652
    Quote Originally Posted by Lou_Reed View Post
    If I may, could I post some of examples that seem not to run? I am using a leftover database donated to me
    by coworker that is no longer relevant to our organization, but to me it could be useful.

    Jus let know if this is okay.
    Certainly.
    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. Export a report to outlook- For dummies.
    By andyt_2005 in forum Import/Export Data
    Replies: 7
    Last Post: 08-02-2014, 03:36 PM
  2. Replies: 10
    Last Post: 07-06-2014, 02:30 PM
  3. Command List for PHP programing
    By jimneely in forum Programming
    Replies: 3
    Last Post: 05-09-2014, 07:43 AM
  4. Print just one record for dummies??
    By foofah in forum Reports
    Replies: 4
    Last Post: 02-04-2014, 03:11 PM
  5. Help Needed Programing Two boxes!
    By stu_C in forum Programming
    Replies: 3
    Last Post: 03-22-2010, 10:06 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