Thing won't allow me to requery

S

Stapes

Hi
I have a form Purchase Orders with a subform Purchase Order Items.
When I add prices into the Purchase Order items subform, I want the
main form to requery to display the new totals. I use this:

Forms.[Purchase Order Form]![Order Details].Requery

I get run-time error '438'.

Object doesn't support this property or method.

What is wrong with the thing?

Stapes
 
D

Dirk Goldgar

Stapes said:
Hi
I have a form Purchase Orders with a subform Purchase Order Items.
When I add prices into the Purchase Order items subform, I want the
main form to requery to display the new totals. I use this:

Forms.[Purchase Order Form]![Order Details].Requery

I get run-time error '438'.

Object doesn't support this property or method.

What is wrong with the thing?


Use

Forms![Purchase Order Form]![Order Details].Requery
 
P

Pat Hartman

Use:
Forms![Purchase Order Form]![Order Details].Form.Requery

You need to replace the first dot with a bang. You then need to follow the
subform name with .Form to indicate that you want to use a form method.
Leaving out the .Form may work but shorthand omissions can come back to bite
you when you convert to new versions of Access.
 

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