Chat with a LIVE Microsoft Access Expert!
 
       
 

         

   

Go Back   Access World Forums > Microsoft Access Discussion > Queries

 
 
Chat with a LIVE Microsoft Access Expert!
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-22-2007, 05:31 AM
AndySuk AndySuk is offline
Registered User
 
Join Date: Jan 2007
Posts: 23
AndySuk is on a distinguished road
Requerying data ina subform

Hi Folks

I have a query based on a table which gives a breakdown of sales by month, sale type and by cost centre (department).

I also have another query which summarises the sales by sale type and cost centre so that and is based on the first query.

the second query is a subform of the first. I tried the second query as an update query but couldn't figure out how to execute it in order to refresh the subform. I've also tried to requery the second query having recreated it as a select query but I'm not able to refresh the data.

The aim is to refresh the data in the subform as any of the underlying data is changed in the original form.

I'm ok with VBA and with macros so if anyone has any advise or ideas I'd appreciate it.

Many thanks

Andy
Reply With Quote
Sponsored Links
  #2  
Old 06-22-2007, 05:59 AM
KeithG's Avatar
KeithG KeithG is offline
AWF VIP
 
Join Date: Mar 2006
Location: Illinois
Posts: 2,592
KeithG will become famous soon enoughKeithG will become famous soon enough
Forms![Main Form]![Sub form name].Form.Requery
__________________
If my post has helped you solve your problems please add to my reputation. Click the scale in the top right side of this post.
Reply With Quote
  #3  
Old 06-22-2007, 06:07 AM
AndySuk AndySuk is offline
Registered User
 
Join Date: Jan 2007
Posts: 23
AndySuk is on a distinguished road
Doh!!

Many thanks Keith
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Subform data correct, but not visible Alc Modules & VBA 16 05-16-2007 11:33 AM
Subform data won't display skwilliams Forms 2 11-30-2004 07:10 PM
Refreshing data of a subform latex88 Forms 5 07-16-2003 08:53 AM
Problems pulling data from subform via vb... alex_aqui Modules & VBA 1 11-07-2002 03:09 PM
linked subform data does not change when master is changed jnmunsey Forms 1 08-14-2002 11:21 AM


All times are GMT -8. The time now is 09:45 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) copyright 2009 Access World