Microsoft
Software
Hardware
Network
Question : Open Access 2007 form with filter, then allow Goto Selection on form
Stumbled across a small problem in my database.
I have two forms Customer_list and Customer_details.
Both forms work as designed stand alone. One lists all the customers and the other lists the customer details.
I am opening a form called Customer_Details two ways "directly by opening" and from a click function on the Customer_list output. The second one uses the command
DoCmd.OpenForm "Customer_Details", , , "OperatorMC = '" & Me!OperatorMC & "'"
As I said this works perfectly and presents the user with the customer details.
However, on the Customer_Details form I have a GotoContact selection option based on an unbound control, which lists customers using the following SQL.
SELECT [OperatorMC], [OperatorName] FROM Customers_tbl ORDER BY [operatorName];
However, when i use the gotoContact selection after arriving at the form from clicking the customer returned from the form Customer_List I cannot get the Customer_details form to present the chosen customer details. I think this is because the form has been opened with a filter previously. How would I code the form to work in both ways. ie how do I turn off the filter when I want to use the GotoCustomer selection ?
thanks in advance
Ian
Answer : Open Access 2007 form with filter, then allow Goto Selection on form
I'm assuming that you are doing the GotoContact in the AfterUpdate event of a combo or a list. If so, add a line of code that resets the filter on the form. This will have to be before the code that attempts to find the record you have selected.
me.Filter = ""
me.FilterOn = false
Random Solutions
SharePoint File Folder Actions
Outlook 2010 with Exchange 2000?
EXIM mail manager (LAMP) permissions auto-reset how to prevent resetting for a specific file
Exchange Database will not mount.
Regarding INOTES in Lotus 8.5
How to enable auditing logs on checkpoint firewalls
calculate age in mysql
Oracle Materialized View refresh - Question
AIX DB2 error
Record / Log SQL Queries