outofpractice
Registered User.
- Local time
- Today, 03:31
- Joined
- May 10, 2011
- Messages
- 32
Hello all! I'm having an issue with a DB that I'm working on which I can't figure why it is happening. So here is what is going on:
I have a form: frm_WeeklyInformationEntry and on this form are two fields titled: Weekly_Start_Date & Weekly_End_Date.
I have a table: tblDocSent that has fields: Sent_Date and Doc_Sent - basically a user will enters data into this table via a form with the date & number of documents sent.
I have a query on the tblDocSent table which has criteria for the Sent_Date field of:
>=[Forms]![frm_WeeklyInformationEntry]![Weekly_Start_Date] And <=[Forms]![frm_WeeklyInformationEntry]![Weekly_End_Date]
To only bring back the Doc_Sent fields that are within the range indicated on the frm_WeeklyInformationEntry form.
So - with this query I have another form created called frm_DocSentDaily . This is a subform on frm_WeeklyInformationEntry. The purpose of this is - the weekly information entered needs to include the weekly count from the tblDocSent.Doc_Sent field.
So that this information doesn't have to be looked up - the subform runs the query (and I requery the subform once the Weekly_End_Date field is updated) and the subform then sums all of the Doc_Sent for a given week and is displayed to the user. This is working as I want it to (and I know that I should just be using a calculated field instead of re-entering the data into the weekly form. This is the first somewhat elaborate DB I'm making in about 2+ years so I have some inefficiencies in it currently!)
This process works. It works when I open the form, when I update the Weekly_End_Date field, when I cycle through the records on the form, or if I just run the query by itself (as long as the form is open with the Start/End dates populated) - it is giving me the accurate results I want.
Except for the issue. Seemingly random when I open up the form and the query tries to execute, I receive a prompt "Enter Parameter Value" for both [Forms]![frm_WeeklyInformationEntry]![Weekly_Start_Date] and [Forms]![frm_WeeklyInformationEntry]![Weekly_End_Date]
I'll open/close the query and it won't run - always gives the error. Then it will just seem to start working again.
This last time it started giving the error, it was pretty persistent so I renamed frm_WeeklyInformationEntry to frm_WeeklyInformationEntry2 then I copied it and pasted another one into the DB naming the copy back to the original name of frm_WeeklyInformationEntry - when I opened this copied version of the form the query worked.
It doesn't seem to have any reason to why it stops working - at least not that I can identify. I can open up the form 20 times in a row and it will execute properly when it is working. The only thing I can think of but have not been able to test yet is - it seems as though this may sometimes happen when the DB is completely closed for a while and then first opened up and accessing the form.
So - wanted to see if anyone has any ideas or experience with this Enter Parameter Value error appearing when it shouldn't be. It's becoming frustrating to not be able to figure out why it appears then disappears.
I have a form: frm_WeeklyInformationEntry and on this form are two fields titled: Weekly_Start_Date & Weekly_End_Date.
I have a table: tblDocSent that has fields: Sent_Date and Doc_Sent - basically a user will enters data into this table via a form with the date & number of documents sent.
I have a query on the tblDocSent table which has criteria for the Sent_Date field of:
>=[Forms]![frm_WeeklyInformationEntry]![Weekly_Start_Date] And <=[Forms]![frm_WeeklyInformationEntry]![Weekly_End_Date]
To only bring back the Doc_Sent fields that are within the range indicated on the frm_WeeklyInformationEntry form.
So - with this query I have another form created called frm_DocSentDaily . This is a subform on frm_WeeklyInformationEntry. The purpose of this is - the weekly information entered needs to include the weekly count from the tblDocSent.Doc_Sent field.
So that this information doesn't have to be looked up - the subform runs the query (and I requery the subform once the Weekly_End_Date field is updated) and the subform then sums all of the Doc_Sent for a given week and is displayed to the user. This is working as I want it to (and I know that I should just be using a calculated field instead of re-entering the data into the weekly form. This is the first somewhat elaborate DB I'm making in about 2+ years so I have some inefficiencies in it currently!)
This process works. It works when I open the form, when I update the Weekly_End_Date field, when I cycle through the records on the form, or if I just run the query by itself (as long as the form is open with the Start/End dates populated) - it is giving me the accurate results I want.
Except for the issue. Seemingly random when I open up the form and the query tries to execute, I receive a prompt "Enter Parameter Value" for both [Forms]![frm_WeeklyInformationEntry]![Weekly_Start_Date] and [Forms]![frm_WeeklyInformationEntry]![Weekly_End_Date]
I'll open/close the query and it won't run - always gives the error. Then it will just seem to start working again.
This last time it started giving the error, it was pretty persistent so I renamed frm_WeeklyInformationEntry to frm_WeeklyInformationEntry2 then I copied it and pasted another one into the DB naming the copy back to the original name of frm_WeeklyInformationEntry - when I opened this copied version of the form the query worked.
It doesn't seem to have any reason to why it stops working - at least not that I can identify. I can open up the form 20 times in a row and it will execute properly when it is working. The only thing I can think of but have not been able to test yet is - it seems as though this may sometimes happen when the DB is completely closed for a while and then first opened up and accessing the form.
So - wanted to see if anyone has any ideas or experience with this Enter Parameter Value error appearing when it shouldn't be. It's becoming frustrating to not be able to figure out why it appears then disappears.