Yet Another Subform Requery Question

C

CJ

Hi Groupies

I am using A2007

I have a main form, frmJob which has a subform frmPurchases and this form
has a subform, fsubInventory. My problem is the requery between the 2
subforms.

If a customer places an order for 10 products, I need the quantity to change
in fsubInventory, right now it isn't updating until I move between records.

On frmPurchases in the field PurchaseQuantity After Update Event I have the
following code:
Me!fsubInventory.Form!TotalStock.Requery

I have also tried entering the code to the frmPurchases After Update
Event....no luck.

What am I missing?!?!?!?!?
 
U

UpRider

On frmPurchases in the field PurchaseQuantity After Update Event I have the
following code:
Try this:
if me.dirty then
me.dirty = false
Me!fsubInventory.Form!TotalStock.Requery
endif

UpRider
 
C

CJ

......and we have a winner!!

Worked perfectly, thanks a bunch!


CJ
-----------------------------------
Work together.....Save your sanity


UpRider said:
On frmPurchases in the field PurchaseQuantity After Update Event I have
the following code:
Try this:
if me.dirty then
me.dirty = false
Me!fsubInventory.Form!TotalStock.Requery
endif

UpRider
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top