Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Requery not working

Posted on 2011-03-04
3
Medium Priority
?
353 Views
Last Modified: 2012-05-11
See attached form AAForm.

Click the red button to requery.
It crashes !  WHAT's Wrong with my code??
How do I requery (and refresh) forms AAA and AAB (which are in the form AAForm)??
Database3.zip
0
Comment
Question by:Patrick O'Dea
  • 2
3 Comments
 
LVL 75
ID: 35040789
Try the attached

mx
Database3-mx01.zip
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 2000 total points
ID: 35040795
Basically change

Form!AAA.Form.Requery

to
Me.AAA.Form.Requery

same for the other line.

mx
0
 

Author Closing Comment

by:Patrick O'Dea
ID: 35040839
Thanks DatabaseMX

That works well.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
If you’re using QODBC to update QuickBooks data from Microsoft® Access but Access is not showing the updated data, you could have set up QODBC incorrectly.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Suggested Courses

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question