Advertisement

06.20.2007 at 12:25PM PDT, ID: 22646881
[x]
Attachment Details

Subform requery in VBA does not show new record

Asked by mcglincym in Access Coding/Macros, Access Forms

Tags: vba, requery, access, subform, record

Windows Vista Ultimate, Access 2003. My Access application consists of a main form with a subform. The record source for the subform is a linked table. Users enter partial/approximate data as a new record in the subform then click on a command button on the main form. My VBA code creates and runs SQL commands that delete the partial record from the underlying table and add a complete record via an ADO connection. Then the subform is requeried. The partial record disappears immediately but the new record does not appear until I close/reopen the main form. I have tried subform.requery, docmd.requery, and subform.recordsource=subform.recordsource.Start Free Trial
[+][-]06.20.2007 at 12:56PM PDT, ID: 19327741

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: Access Coding/Macros, Access Forms
Tags: vba, requery, access, subform, record
Sign Up Now!
Solution Provided By: harfang
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.09.2007 at 07:19PM PDT, ID: 19667316

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

 
[+][-]08.15.2007 at 10:12AM PDT, ID: 19701668

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

 
[+][-]08.17.2007 at 06:11AM PDT, ID: 19716493

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.

 
[+][-]08.17.2007 at 02:39PM PDT, ID: 19720580

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