Dear Sirs,
I have a form with two charts on it. Those charts are based on two queries. When designing the form I made those two queries with explicit criteria (ID). It worked as expected, charts were drawn. Next thing I did was to add a combo box, where I pick a certain surname and this feeds 3 textboxes. txt_ID, txt_Name, txt_LastName. Then I changed the query criteria to [forms]![frm_Yearly]![txt_ID]. I get the message "The Microsoft Access database engine does not recognize '[forms]![frm_Yearly]![txt_ID]' as a valid field name or expression." when the form opens and both charts are blank. I click ok to that message and get " An error occured while sending data to the OLE server (the application used to create the object)." Queries execute ok if I fire them manually when txt_ID gets populated from the combo box. Any idea?
I'm using Access 2010 on the development machine, back end data is on the MSSQL server.
I have a form with two charts on it. Those charts are based on two queries. When designing the form I made those two queries with explicit criteria (ID). It worked as expected, charts were drawn. Next thing I did was to add a combo box, where I pick a certain surname and this feeds 3 textboxes. txt_ID, txt_Name, txt_LastName. Then I changed the query criteria to [forms]![frm_Yearly]![txt_ID]. I get the message "The Microsoft Access database engine does not recognize '[forms]![frm_Yearly]![txt_ID]' as a valid field name or expression." when the form opens and both charts are blank. I click ok to that message and get " An error occured while sending data to the OLE server (the application used to create the object)." Queries execute ok if I fire them manually when txt_ID gets populated from the combo box. Any idea?
I'm using Access 2010 on the development machine, back end data is on the MSSQL server.