Hello everyone,
I have a form named SearchResults and a subform named SearchResultsSecondary.
Inside the SearchResultsSecondary, I have a button that, when clicked, runs a macro named pass2form.
This macro, is supposed to open a form named CHARGES in edit mode, filtered by a query named qrypass2form.
This query is supposed to pass the current CLIENT_ID from the SearchResultsSecondary form and the today's day (through the Date() function) to the CHARGES form, so as to allow me to edit other fields on the specific filtered record.
The problem is that when I click the button, a record DOES open in the CHARGES form, in the correct date but in the wrong CLIENT_ID, therefore in the wrong client.
What in God's great earth am I doing wrong? I have checked everything again and again but with no luck. I even deleted all my clients and entered new ones (dummy entries) to check it again but I'm having the same results.
Please note that I chose the method with the macro because my VBA knowledge is rather poor.
Thanks in advance, all your help is highly appreciated.
Alexander
I have a form named SearchResults and a subform named SearchResultsSecondary.
Inside the SearchResultsSecondary, I have a button that, when clicked, runs a macro named pass2form.
This macro, is supposed to open a form named CHARGES in edit mode, filtered by a query named qrypass2form.
This query is supposed to pass the current CLIENT_ID from the SearchResultsSecondary form and the today's day (through the Date() function) to the CHARGES form, so as to allow me to edit other fields on the specific filtered record.
The problem is that when I click the button, a record DOES open in the CHARGES form, in the correct date but in the wrong CLIENT_ID, therefore in the wrong client.
What in God's great earth am I doing wrong? I have checked everything again and again but with no luck. I even deleted all my clients and entered new ones (dummy entries) to check it again but I'm having the same results.
Please note that I chose the method with the macro because my VBA knowledge is rather poor.
Thanks in advance, all your help is highly appreciated.
Alexander