T
T Payne
I have restricted values in one combo box to categories listed in another,
as per:
http://office.microsoft.com/en-us/assistance/HA011730581033.aspx
I want to be able to add new data to both boxes, as per:
http://www.mvps.org/access/forms/frm0015.htm
This NotInList event works fine for the "Categories" box. But consistently
returns an error message when new data is added to the restricted
("Products") box. The error is:
Run-time error '3061':
Too few parameters. Expected 1.
The line of code where the debugger stops is:
Set rs = db.OpenRecordset("qryProductsList", dbOpenDynaset)
The same event associated with the Categories combo box (with reference to
"qryCategoriesList" instead of "qryProductsList") works fine.
The queries and tables underlying them are all fine.
Any thoughts pn why this might be happening? Thanks in advance.
as per:
http://office.microsoft.com/en-us/assistance/HA011730581033.aspx
I want to be able to add new data to both boxes, as per:
http://www.mvps.org/access/forms/frm0015.htm
This NotInList event works fine for the "Categories" box. But consistently
returns an error message when new data is added to the restricted
("Products") box. The error is:
Run-time error '3061':
Too few parameters. Expected 1.
The line of code where the debugger stops is:
Set rs = db.OpenRecordset("qryProductsList", dbOpenDynaset)
The same event associated with the Categories combo box (with reference to
"qryCategoriesList" instead of "qryProductsList") works fine.
The queries and tables underlying them are all fine.
Any thoughts pn why this might be happening? Thanks in advance.