Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,959

    That should have set [Event Procedure] in the event property. But double check that happened.

    All works for me now.
    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.

  2. #17
    Khao is offline Novice
    Windows Vista Access 2007
    Join Date
    Aug 2012
    Posts
    13
    Quote Originally Posted by June7 View Post
    That should have set [Event Procedure] in the event property. But double check that happened.

    All works for me now.

    I'm getting absolutely nothing. Can you upload your working DB so I can try find the difference? Event procedure is in the property for me also.

    Ah yes, just changed it to location - overlooked that. Still nothing with the button though, copied the video step for step literally to the mouse movement to no avail.

  3. #18
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,959
    I prefer you to build. This is extremely simple functionality. You need to be successful at this.

    I did get button to work. However, your report won't work because the query parameter is wrong. The combobox gives a list of Location codes but the report criteria is under JobCode.

    Review the tutorial again. Start from scratch if you have to, not much to do.

    The link on debugging at bottom of my post will be useful for more advanced coding.
    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.

  4. #19
    Khao is offline Novice
    Windows Vista Access 2007
    Join Date
    Aug 2012
    Posts
    13
    Quote Originally Posted by June7 View Post
    I prefer you to build. This is extremely simple functionality. You need to be successful at this.

    I did get button to work. However, your report won't work because the query parameter is wrong. The combobox gives a list of Location codes but the report criteria is under JobCode.

    Review the tutorial again. Start from scratch if you have to, not much to do.
    Created form. Created unbound button on form. Clicked properties > event > on click > code builder > entered identical to what was in the video (my report name though ofc)

    Set to event procedure. Exit out. Button doesn't work.

    This is so frustrating. I understand this is super simple stuff and I know it is but what am I doing wrong??? I've copied the video atleast 20 times now with the same result... =/

  5. #20
    Khao is offline Novice
    Windows Vista Access 2007
    Join Date
    Aug 2012
    Posts
    13
    I used the button wizard to successfully open the report with filters (obviously, it did it for me ). Still confused as to why the coded version didn't work. I guess it's a half win...

  6. #21
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,959
    Created unbound button on form.
    Buttons are NEVER bound. They don't have a ControlSource property.

    Can't explain unless I can see what you did. My edit of your form worked just fine.

    Did the wizard create [Embedded Macro]?
    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.

  7. #22
    Khao is offline Novice
    Windows Vista Access 2007
    Join Date
    Aug 2012
    Posts
    13
    The wizard did create embedded macro. Is there any reason why people prefer to code the button instead of the wizard? I haven't done anything different to when I first posted except for change the source code from the combo box to the button.

  8. #23
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,959
    I don't build with the wizards because they do things I don't like, such as use embedded macros. I use only VBA. My training completely bypassed wizards and macros.The embedded macro can be converted to VBA.
    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.

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

Similar Threads

  1. General totals question
    By brownk in forum Database Design
    Replies: 8
    Last Post: 05-18-2012, 09:16 AM
  2. General Question
    By notadbadmin in forum Access
    Replies: 3
    Last Post: 08-03-2011, 08:03 PM
  3. General Database Question
    By Lorlai in forum Access
    Replies: 1
    Last Post: 06-23-2011, 05:00 PM
  4. General question about access
    By TEE in forum Access
    Replies: 2
    Last Post: 05-30-2011, 07:50 AM
  5. General question
    By dollygg in forum Access
    Replies: 7
    Last Post: 12-11-2009, 05:13 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