G
Guest
Hello,
I wrote a SQL statement as recordsource for a combobox, here it is:
SELECT PAZ.ID, PAZ.PAZIENTE, TBLVISITS.TYPE, TBLVISITS.DATA
FROM (SELECT ID, (COGNOME & ", " & NOME) AS PAZIENTE FROM TBLANAGRAFICA) AS
PAZ INNER JOIN TBLVISITS ON TBLVISITS.ID=PAZ.ID
ORDER BY TBLVISITS.DATA;
I have fully tested and it works fine!!
But as soon as I close the form which hold the combobox, the statement
changes into:
SELECT PAZ.ID, PAZ.PAZIENTE, TBLVISITS.TYPE, TBLVISITS.DATA FROM [SELECT ID,
(COGNOME & ", " & NOME) AS PAZIENTE FROM TBLANAGRAFICA] AS PAZ INNER JOIN
TBLVISITS ON TBLVISITS.ID=PAZ.ID ORDER BY TBLVISITS.DATA;
It changes two parenthesis into brackets and it wont work anymore.
As soon as I click on the combpbox to choose from the list get an error
message.
Why is this happening?
Thanks,
Rocco
I wrote a SQL statement as recordsource for a combobox, here it is:
SELECT PAZ.ID, PAZ.PAZIENTE, TBLVISITS.TYPE, TBLVISITS.DATA
FROM (SELECT ID, (COGNOME & ", " & NOME) AS PAZIENTE FROM TBLANAGRAFICA) AS
PAZ INNER JOIN TBLVISITS ON TBLVISITS.ID=PAZ.ID
ORDER BY TBLVISITS.DATA;
I have fully tested and it works fine!!
But as soon as I close the form which hold the combobox, the statement
changes into:
SELECT PAZ.ID, PAZ.PAZIENTE, TBLVISITS.TYPE, TBLVISITS.DATA FROM [SELECT ID,
(COGNOME & ", " & NOME) AS PAZIENTE FROM TBLANAGRAFICA] AS PAZ INNER JOIN
TBLVISITS ON TBLVISITS.ID=PAZ.ID ORDER BY TBLVISITS.DATA;
It changes two parenthesis into brackets and it wont work anymore.
As soon as I click on the combpbox to choose from the list get an error
message.
Why is this happening?
Thanks,
Rocco