I have a strange problem and was hoping that someone out there had come accross something similar. Im sorry that this is long winded but im trying to give all the info i can as the problem seems strange to me.
Ok i have many forms. for the sake of this example i have one form that has a text box in. The text box is referenced in a query to allow a variable to be inputted.. When OK is clicked the form a second form opens displaying the results of the query. If i open up the first form from the Form Window in the datase then everything works fine. I get the reasults that i need.
However as i have many forms to allow several search types i have a seperate form to allow a user to select the search type. A search is selected using option buttons that are grouped together using an option group. A user selects a check box and selects OK and the correct search window is displayed. Still no problems
My problem occurs here. I enter the data in to the search window as normal and press OK. I am then confronted by the "Enter Parameter Value" window which is displayed by access if it can not find the form referenced in the query. I cannot understand why this is displayed under this circustance when it is displyed as normal when i open the form from the form window.
There is one final twist. If i open the database and run the select seatrch type then i am confronted with the problem however if i open the form from the form window and run everything (the way it works) AND THEN run the search window (THE WAY IT DOESNT WORK) then everything works fine.
I hope this all makes sense it is hard to describe but i cant for the life of me understand why this is happeneing. Its annoying me.
Thanks for reading and thanks for any replies.
Chris
Ok i have many forms. for the sake of this example i have one form that has a text box in. The text box is referenced in a query to allow a variable to be inputted.. When OK is clicked the form a second form opens displaying the results of the query. If i open up the first form from the Form Window in the datase then everything works fine. I get the reasults that i need.
However as i have many forms to allow several search types i have a seperate form to allow a user to select the search type. A search is selected using option buttons that are grouped together using an option group. A user selects a check box and selects OK and the correct search window is displayed. Still no problems
My problem occurs here. I enter the data in to the search window as normal and press OK. I am then confronted by the "Enter Parameter Value" window which is displayed by access if it can not find the form referenced in the query. I cannot understand why this is displayed under this circustance when it is displyed as normal when i open the form from the form window.
There is one final twist. If i open the database and run the select seatrch type then i am confronted with the problem however if i open the form from the form window and run everything (the way it works) AND THEN run the search window (THE WAY IT DOESNT WORK) then everything works fine.
I hope this all makes sense it is hard to describe but i cant for the life of me understand why this is happeneing. Its annoying me.
Thanks for reading and thanks for any replies.
Chris