Advertisement

05.13.2008 at 03:09PM PDT, ID: 23399635
[x]
Attachment Details

Code to refresh/repaint form after running other queries

Asked by schneider_ks in Microsoft Access Database, Access Forms, Access Coding/Macros

Tags: Microsoft, Access, 2000

I've got code to run 3 queries, and would the form to refresh, showing the new added records after this runs.

The form is frm_MFR_BRND_EDIT
and the query that this form is based on is 'qry_tblMFRBRND_Local_ActiveRecords'

Private Sub CommandRunQueries_Click()
On Error GoTo Err_RunQueries
   
'Turn off Action Query Alerts
    DoCmd.SetWarnings False
    DoCmd.OpenQuery "qry_NewRecords_Append"
    DoCmd.OpenQuery "qry_UpdateDate_NewRecords"
    DoCmd.OpenQuery "qry_DeletedRecords_MarkLocal"
        'Turn Action Query Alerts back on
    DoCmd.SetWarnings True

Exit_RunQueries:
 Exit Sub
Err_RunQueries:
    MsgBox "Code could not execute!" _
    & vbCrLf & vbCrLf & "Error " & Err.Number & ": " _
    & vbCrLf & vbCrLf & Error, vbExclamation
    Resume Exit_RunQueries

End SubStart Free Trial
[+][-]05.13.2008 at 03:16PM PDT, ID: 21559781

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 03:17PM PDT, ID: 21559785

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 03:23PM PDT, ID: 21559810

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 03:29PM PDT, ID: 21559839

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 03:56PM PDT, ID: 21559991

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 05:50PM PDT, ID: 21560455

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 08:27PM PDT, ID: 21561036

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Access Database, Access Forms, Access Coding/Macros
Tags: Microsoft, Access, 2000
Sign Up Now!
Solution Provided By: harfang
Participating Experts: 3
Solution Grade: A
 
 
[+][-]05.14.2008 at 07:02AM PDT, ID: 21564274

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 07:10AM PDT, ID: 21564369

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 07:11AM PDT, ID: 21564377

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 07:14AM PDT, ID: 21564411

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 07:20AM PDT, ID: 21564477

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 07:38AM PDT, ID: 21564692

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.14.2008 at 08:27AM PDT, ID: 21565266

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628