Results 1 to 3 of 3
  1. #1
    Lubosh97 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Apr 2014
    Posts
    1

    Requery macro dont work

    Hi, i need to requery Query from Form where i have button. Button is based on onclick macro. After click it still calling error 2950. I configured trusted locations as advice MS support.

    Have you any ideas how to fix it ? Thank you

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Does your button click physically open a query? if so you'll have to close the query first then reopen it.
    If you're requerying a list box or subform or form contents that's a different matter, what does your code look like? or macro I guess. Most advanced users do not use macros because they are too limiting but we may be able to spot the problem and offer a different solution.

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    You requery the object on the form. Obj.requery. And make sure the object has a recordsource.

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

Similar Threads

  1. Access opens but commands dont work
    By tngirl in forum Access
    Replies: 2
    Last Post: 04-04-2014, 02:39 PM
  2. vba code dont work
    By mikichi in forum Programming
    Replies: 7
    Last Post: 11-12-2013, 01:59 PM
  3. UNION qry dont work as expected.
    By rncarterjm in forum Queries
    Replies: 10
    Last Post: 04-02-2013, 07:53 AM
  4. macros in subform dont work
    By tuyo in forum Access
    Replies: 2
    Last Post: 03-25-2011, 09:49 AM
  5. Criteria from Combobox dont work.
    By Ryan in forum Queries
    Replies: 3
    Last Post: 08-31-2009, 07:09 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