Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664

    Error in VB code

    I am trying to run this very simple program in MS Access 2010. It fails with an error and I am not sure what it is.

    Any help appreciated. Thanks in advance.

    The program is posted below.

    Respectfully,

    Lou Reed

  2. #2
    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
    Your program did not post.

  3. #3
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    I know that I have done this before and I cannot figure out what I am doing wrong.

    I do not need to zip it. It is less that 2 GB.


    R,

    Lou Reed

  4. #4
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    What is the action you are trying to do and what is the error message?

  5. #5
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    I am trying to upload a MS Access 2010 db that is quite small. It does not need zipping. But when I find it (the file) and then I click upload nothing happens.

    Any help appreciated. Thanks in advance.

    Respectfully,

    Lou reed

  6. #6
    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
    Zip it up and try again.

  7. #7
    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
    The limit on accdb or mdb files it 500.00 KB. I always just zip to save time in the Upload/Download.

  8. #8
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Maybe that is it. it is so small a file that I thought zipping was not needed. I have a zipped version anyway.

  9. #9
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

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

    Here the file is - hopefully

    I think that I may have uploaded it. I am sorry for the delay.

    R,

    Lou Reed
    Attached Files Attached Files

  11. #11
    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
    You have nothing in the Click Event of the button on the Form. What do you want then button to accomplish?

  12. #12
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    The zipped code is in the previous post. Ch2CodeExamples.zip. When I run the

    VerifyCreditAvail 5.0, 4.93

    I get an error: Procedure Undefined. Something like that. It is so simple code that to fail is hard to believe. Then again, I am new MS Access 2010 VBA.

    Any help appreciated.


    R.

    Lou Reed

  13. #13
    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 downloaded your db and see nothing in the Click event!

  14. #14
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    I am currently just going through a tutorial. The click event is in the next part, I am not there yet. This just says put this code in then go to Immediate window
    and type

    VerifyCreditAvail 5.0, 4.93


    That is when I get the error. Undefined Procedure. As I said it is a simple set of code.


    Respectfully,


    Lou Reed

  15. #15
    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 you mentioned that yet in this thread.
    Try putting this in the Immediate window:
    ?VerifyCreditAvail 5.0, 4.93

    ...note the leading "?".

Page 1 of 2 12 LastLast
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