This topic is locked

error trying to save record of custom view with inner join

2/27/2010 6:50:13 PM
PHPRunner General questions
A
aramuni author

Hi,
I created a custom view like that:
SELECT

OS.PKID,

OS.Numero,

OS.[Dt Abertura],

OS.Clientes_Codigo,

Cadastro.Telefone

FROM OS

INNER JOIN Cadastro ON OS.Clientes_Codigo = Cadastro.Codigo

ORDER BY OS.[Dt Abertura] DESC
The idea is show the client phone in the list page using the client_codigo (codigo is the id).
When I try to add a new record a receive this error msg:
"odbc_exec() [function.odbc-exec]: SQL error: [Microsoft][ODBC Microsoft Access Driver] The INSERT INTO statement contains the following unknown field name: 'OS.Numero'. Make sure you have typed the name correctly, and try the operation again., SQL state S0022 in SQLExecDirect"
The fiel Cadastro.Telefone is not selected in the add page and only appears in the list page but still I get the error.
How can I correct this?
Tks in advance.

Sergey Kornilov admin 2/28/2010

Hard to tell without seeing your files. Post your application to 'Demo Account' and open a ticket at http://support.xlinesoft.com sending your Demo Account URL for investigation.