Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / January 2008

Tip: Looking for answers? Try searching our database.

Thing won't allow me to requery

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stapes - 21 Jan 2008 17:07 GMT
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
Dirk Goldgar - 21 Jan 2008 17:30 GMT
> Hi
> I have a form Purchase Orders with a subform Purchase Order Items.
[quoted text clipped - 8 lines]
>
> What is wrong with the thing?

Use

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

Signature

Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)

Pat Hartman - 21 Jan 2008 19:23 GMT
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.

> Hi
> I have a form Purchase Orders with a subform Purchase Order Items.
[quoted text clipped - 10 lines]
>
> Stapes
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.