Hello, googled this for a while, but no luck. All threads which deal any kind of 'Access changes my sql syntax' topic end abruptly without a resolution.
I have a form called UpdateFTE with a listbox whose rowsource is:
This works just fine in my development copy. When I import this form into another db- ANY other db- (tried my users' copies and also a blank new database)- the syntax changes to this:
And when I try to pick from the listbox, I get the error:
"The record source '~sq_cUpdateFTEform~sq_cEmployeeName' specified on this form or report does not exist."
Why does this happen? All the tables are linked in the users' databases properly, all data is available and no problems with importing other forms. Compacting both databases, relinking tables, importing and directly pasting from a back up copy does not work. How can I stop it from messing with the syntax?
Thank you.
I have a form called UpdateFTE with a listbox whose rowsource is:
PHP:
select distinct ucase(LastName & " " & FirstName), LastName, FirstName from (select LastName, FirstName from EMPLOYEE_REG union Select LastName, FirstName from EMPLOYEE_TEMP);
This works just fine in my development copy. When I import this form into another db- ANY other db- (tried my users' copies and also a blank new database)- the syntax changes to this:
PHP:
SELECT DISTINCT ucase(LastName & " " & FirstName), LastName, FirstName FROM [select LastName, FirstName from EMPLOYEE_REG union Select LastName, FirstName from EMPLOYEE_TEMP] AS [%$##@_Alias];
And when I try to pick from the listbox, I get the error:
"The record source '~sq_cUpdateFTEform~sq_cEmployeeName' specified on this form or report does not exist."
Why does this happen? All the tables are linked in the users' databases properly, all data is available and no problems with importing other forms. Compacting both databases, relinking tables, importing and directly pasting from a back up copy does not work. How can I stop it from messing with the syntax?
Thank you.