C
Carlos
Hi, I currently have a form called "Dbs - Financials" that contains a
secondary subform called "Form_Financials". The secondary form contains a
query whose SQL is modified whenever the user changes from one record to
another in "Dbs - Financials".
The problem I have is that the SQL is effectively changed, but the query
does not reflect these changes. I have tried several versions of the
following statement:
Application.Forms("Dbs - Financials").Forms("Form_Financials").Form.Requery
but they do not work.
What I change in the SQL statement is the filter applied to the field
"Company Name", which looks like
WHERE ((([Dbs - Companies IDs].[Company Name])="GEVITY HR INC"))
for example ("GEVITY HR INC" is the name of the company).
What should I do to have the query reflect the changes in its SQL?
secondary subform called "Form_Financials". The secondary form contains a
query whose SQL is modified whenever the user changes from one record to
another in "Dbs - Financials".
The problem I have is that the SQL is effectively changed, but the query
does not reflect these changes. I have tried several versions of the
following statement:
Application.Forms("Dbs - Financials").Forms("Form_Financials").Form.Requery
but they do not work.
What I change in the SQL statement is the filter applied to the field
"Company Name", which looks like
WHERE ((([Dbs - Companies IDs].[Company Name])="GEVITY HR INC"))
for example ("GEVITY HR INC" is the name of the company).
What should I do to have the query reflect the changes in its SQL?