Hello all,
I am new to this forum and was not sure if this is the correct place for my problem. It falls in a lot of areas.
Background: I have a form "frmNewInfo for the purpose of creating or updating a record. The form values are loaded into a table to create a unique transaction key(so there is a record of each transaction), and that table is used for a query, and the information pulled from that query is used to update the live table.
The issue is this, when I try and update a table from the query it gives me an error "failed to add new record, too few parameters, expected 1". The problem I am having I think is in the criteria section of the query, the script will not pull the information from the query for some reason.
I have the criteria set to [forms]![frmNewInfo]![frmKey]. When I run the query everything comes up it pulls the unique key and fills the column data according to the unique key on the active form. This used to work and now i get the too few parameters error when I run the script as of 2 weeks ago. I tested by manually entering the criteria to the current form key, and when running the query all gives all the same information, but when the criteria is hard coded to the active form number the update script will work. I only get the scripting error when the criteria isn't hard coded.
So the query works on its own, the script works with the criteria hard coded, but the script will not work with the query using forms.xxx.xxx as the criteria
Any help or ideas are appreciated.