Form asking for to 'Enter Parameter Value' when try to open

SachAccess

Active member
Local time
Today, 15:39
Joined
Nov 22, 2021
Messages
405
Hi,

I have multiple forms in my DB. Some of the forms gets open without any issues.
For some of the forms am facing below issues.

For example, if I click to open form 'A', it asks me to enter parameter value.
There are two buttons with this input box, OK and Cancel.
Form gets opened, with some forms I get only one input box, for some it might be 2 or 3.

Even if I press cancel or enter any random value then only the form is visible.
This issue is not with all the forms. Can anyone please tell me what should I check in Form code to resolve this issues.
Thanks.

PS - Edited later, or is like that some of the tables associated with this form should have some data.
At present few of the tables did not have any data. Am not sure if this is the cause but I should share this information too.

Am filling dummy data in these tables and trying again to open the forms.
My apologies if I have provided very little or in-correct information about the issue.
 
Last edited:
If a form is asking for a parameter and that is not in the query the culprit is often something left in the form's properties
Filter
Order By
Ensure these are empty.
 
If a form is asking for a parameter and that is not in the query the culprit is often something left in the form's properties
Filter
Order By
Ensure these are empty.
Hi @MajP sir, thanks a lot for the guidance, will check these parts of my DB. Have a nice day ahead. :)
 
Check to be sure that the control source properties of all controls that are data bound,e.g text box, combo box, list box, etc are correct, i.e actual data fields /columns in tables.

The field name might have been changed in the table after you created the form.
 
Check to be sure that the control source properties of all controls that are data bound,e.g text box, combo box, list box, etc are correct, i.e actual data fields /columns in tables.

The field name might have been changed in the table after you created the form.
Sure sir, I will do it, thanks a lot for the help. :)
 
Hi,
If you can't find any problem with the parameter, that is, the information contained in the parameter is not available in your database, which is usually caused by previously created and subsequently deleted parameters. In this case, the only thing to do to solve the problem is to transfer your database to an empty, clean and new database, don't forget to transfer all the objects.
 
Sorry to necro this post but i have just encountered this problem and i have figured out why. this is actually caused by a VBA bug and form design. If you have been adding code for an event or button and a stop trigger happens and the debug window shows. If you switch back to the form and change something and close it without stopping the code with the stop buttom something weird happens in memory. You can close the database and open it and it doesnt recognise any of the parameters.
An issue occurs if you change something on the form without stopping the code because for some reason it doesnt actually close/recheck any code or form info until you stop it. Open the form you have the parameter bugs with and go into VBA code viewer. Goto the place where you last edited or an error occured. Click the stop button. Also delete any blank lines near the code. It may appear that the code is not already running but unless you stopped it before it will still be, for some bizarre reason its still registered as running in VBA, regardless if you close access or not, which is why it doesnt check the forms controls next time you open it and you get the parameter bugs.. If you get any issues like this instead having to copy and import the data drop me a message and i can help.
 
First, since that is your first post on the forum, hello and welcome.

Second, you are talking about the well-known factor that you have to make an actual editing change to make VBA re-compile. And it is also well known that certain types of STOP activity will have the effect of a RESET on the code, which means all non-constant named variables or objects frequently become RESET to either 0, blank, NULL, or NOTHING depending on object type.

This next linked article is from 2010, which tells you how old the problem is AND it explains a bit about what is going on.


In closing, it ain't a bug... it's a feature.
 

Users who are viewing this thread

Back
Top Bottom