ACC2: Command Button Wizard Prompts for Parameter Value (119475)
The information in this article applies to:
This article was previously published under Q119475 SYMPTOMS
Moderate: Requires basic macro, coding, and interoperability skills.
When you choose a command button, created with the Command Button Wizard,
on a subform to open another form to the current record in the subform, you
are prompted "Enter a parameter value" for the value of the linked field as
if the subform were a main form, not a subform.
CAUSE
When you created the command button, the Command Button Wizard did not
recognize that the form you were using was a subform. Instead, the wizard
assumed that the form was a main form.
RESOLUTION
After you run the Command Button Wizard, edit the command button's code to
properly reference the control on the subform. The correct syntax for
referencing a control on a subform is:
Forms![MainFormName]![SubformName].Form![ControlName]
STATUS
Microsoft has confirmed this to be a problem in Microsoft Access version
2.0. This problem no longer occurs in Microsoft Access version 7.0.
REFERENCES
For more information about how to reference a control on a subform, search
for "subforms: referring to controls," and then "Referring to Controls on a
Subform or Subreport" using the Microsoft Access Help menu.
Microsoft Access "Building Applications," version 2.0, Chapter 4, "Using
Forms to Collect, Display, and Filter Information," page 83
Modification Type: | Major | Last Reviewed: | 8/20/2001 |
---|
Keywords: | kbbug kbusage KB119475 |
---|
|