Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    I will try it. It does not say to do that in the instructions that I have.



    Respectfully,


    Lou Reed

  2. #17
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Here is what I got when I included the ? in the command.

    ?VerifyCreditAvail 5.0, 4.93
    5, 4.93
    5, 4.93

    It is just a printout.
    I was expecting the dialog box telling that there was insufficient credit available.

    What am I doing wrong?


    R,

    Lou Reed

  3. #18
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    I haven't figured out what is going on yet but you created a "Class Module" and not a Standard Module for starters.

  4. #19
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664

    That fixed it

    You got it right. When I rewrote the code using a standard module and the program ran with no trouble at all.

    The question is what is the difference between the two modules (class and standard) and can one be changed to the other after the fact?

    Thanks very much for your input.

    Respectfully,

    Lou Reed
    Last edited by Lou_Reed; 09-21-2016 at 06:47 AM. Reason: correction

  5. #20
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    I don't believe they can be changed after the fact. Here's an article on Class Modules: http://www.cimaware.com/expert-zone/...classes-in-vba

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

Similar Threads

  1. code error??
    By Jen0dorf in forum Access
    Replies: 1
    Last Post: 11-14-2015, 12:16 PM
  2. Error in VBA Code
    By guillermoftw in forum Access
    Replies: 3
    Last Post: 02-10-2015, 12:12 PM
  3. error with a code
    By ashraf_al_ani in forum Forms
    Replies: 3
    Last Post: 08-04-2014, 02:56 AM
  4. VBA Code Returning Error Run Time Error 3061
    By tgwacker in forum Access
    Replies: 2
    Last Post: 11-24-2013, 11:00 AM
  5. Error in Code
    By Lockrin in forum Programming
    Replies: 3
    Last Post: 02-25-2010, 03:27 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
  •  
Other Forums: Microsoft Office Forums