Secretgeek
Technical User
Good morning everyone.
The title of this thread almost says it all.
What I need to add is that I only want the form to cancel opening if the filter value passed from form A does not exist and the user hasn't clicked the 'Add New Case' button on Form A.
What is happening at the minute is my 'Add New Case' works fine. But if you enter a number that doesn't exist in my 'Go to case number' button & textbox, Form B opens completely blank (and impossible to get out of without switching to design view) and I don't want that. My trouble is I can't work out how to get access to check either if the ID number exists already or if the Add new record button has been pressed.
I suspect it could be solved with a SQL query running on the contents of the 'Go to Case Number' textbox but I simply don't have the necessary knowledge where sql is concerned.
Any help, as always, much appreciated.
The title of this thread almost says it all.
What I need to add is that I only want the form to cancel opening if the filter value passed from form A does not exist and the user hasn't clicked the 'Add New Case' button on Form A.
What is happening at the minute is my 'Add New Case' works fine. But if you enter a number that doesn't exist in my 'Go to case number' button & textbox, Form B opens completely blank (and impossible to get out of without switching to design view) and I don't want that. My trouble is I can't work out how to get access to check either if the ID number exists already or if the Add new record button has been pressed.
I suspect it could be solved with a SQL query running on the contents of the 'Go to Case Number' textbox but I simply don't have the necessary knowledge where sql is concerned.
Any help, as always, much appreciated.