ACC1x: Parameters Expected When Navigating Form with Sub-subformID: Q113545
|
While navigating a main form that contains a subform that contains another
subform, you receive the following error message:
3 Parameters were expected but only 1 were supplied
A common field is being used in the LinkChild and LinkMaster properties to link the main form to the subform and the subform to its subform (the subsubform). When Microsoft Access tries to evaluate the common link field to filter the records in the subforms, it may try to evaluate the links in an incorrect order, which leads to the error message described above.
This problem does not occur in Microsoft Access version 2.0.
There are two ways to solve this problem in versions 1.0 and 1.1:
The following example demonstrates the problem described above, and
demonstrates the techniques to solve the problem.
Note that this problem is very difficult to reproduce. Following the steps
below may not be sufficient to cause the problem to manifest in the sample
database NWIND.MDB.
Suppose that you have common Orders and Order Details tables to take orders
for your business, similar to the design in the sample database NWIND.MDB.
The Orders table stores information about an order and the Order Details
table stores information about the "many" products ordered on "one" order.
The tables might have the following important fields (among others):
Orders
----------
*Order ID
Order Date
Order Details
----------------
*Order ID
*Product ID
Unit Price
Quantity Ordered
Order Details Shipped
---------------------
*Order ID
*Product ID
*Date
Quantity Shipped
Main form Subform SubSubform
Orders Order Details Order Details Shipped
--------- ------------- ---------------------
Order ID -> Order ID -> Order ID
Product ID -> Product ID
Order Details
----------------
Order Detail ID
*Order ID
*Product ID
Unit Price
Quantity Ordered
Order Details Shipped
---------------------
*Order Detail ID
*Date
Quantity Shipped
Main form Subform SubSubform
Orders Order Details Order Details Shipped
--------- ------------- ---------------------
Order ID -> Order ID
Order Detail ID -> Order Detail ID
OrdProdLink: [Order ID] & [Product ID]
Main form Subform SubSubform
Orders Order Details Order Details Shipped
--------- ------------- ---------------------
Order ID -> Order ID
OrdProdLink -> OrdProdLink
Microsoft Access "User's Guide," version 1.0, Chapter 6, "Designing Select
Queries," pages 126-127
Microsoft Access "User's Guide," version 1.1, Chapter 6, "Designing Select
Queries," pages 130-131
Microsoft Access "User's Guide," version 1.0, Chapter 10, "Creating Forms
Based On More than One Table," pages 275-276
Microsoft Access "User's Guide," version 1.1, Chapter 6, "Designing Select
Queries," pages 275-276
Keywords : kbusage FmsSubf
Version : 1.0 1.1
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 3, 1999