Brian Martin
Registered User.
- Local time
- Today, 08:25
- Joined
- Jul 24, 2002
- Messages
- 68
I've just added the following code behind a button.
The code works but a message box appears saying "This action requires an object name argument"
Forms![Product List1].Visible = True
Forms![Product List1].Requery
Forms![Product List1]![PartNumber].SetFocus
DoCmd.FindRecord Forms![frmChoose]![subChoose].[Form].Controls![PN]
DoCmd.Close acForm, frmChoose
What is causing this and how can I cure it?
The code works but a message box appears saying "This action requires an object name argument"
Forms![Product List1].Visible = True
Forms![Product List1].Requery
Forms![Product List1]![PartNumber].SetFocus
DoCmd.FindRecord Forms![frmChoose]![subChoose].[Form].Controls![PN]
DoCmd.Close acForm, frmChoose
What is causing this and how can I cure it?