[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 594: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 650: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
Fórum Xmaker • Erro ao consultar no relatório!!! (RESOLVIDO!!!)
Página 1 de 1

Erro ao consultar no relatório!!! (RESOLVIDO!!!)

Enviado: Outubro 8th, 2011, 8:39 pm
por Dimmy Angelo
Coloquei o código certinho no XNumEdit 1 e quando vai consultar da o seguinte erro... Segue a imagem

{utilize o "var" para declarar variáveis}
begin
{codificação...}
FormGridPesquisa := TFormGridPesquisa.Create(Application);
Try
FormGridPesquisa.Atalho := VK_F8;
FormGridPesquisa.Campo := TabGlobal.DPACIENTE.CODIGO;
FormGridPesquisa.Avulso := True;
if FormGridPesquisa.ShowModal = mrOk then
XNumEdit1.Value := FormGridPesquisa.Resultado;
Finally
FormGridPesquisa.Free;
end;
end;

Meu Bom Jesus da Capelinha ! Onde estou errando...

Re: Erro ao consultar no relatório!!! (RESOLVIDO!!!)

Enviado: Outubro 9th, 2011, 11:30 am
por Dimmy Angelo
Exemplo:

Temos a tabela Itens de Produtos que relaciona com Clientes. Logicamente vamos direcionar a consulta para Código do Cliente na tabela Clientes, errado.
Temos que consultar o cliente na Tabela Itens de Produtos, pois Clientes esta relacioanada com Itens de Produto.

Não se esqueça que o campo devera estar como chave extrangeira!!!

Obrigado pessoal, mas foi um mero descuido meu!!! Mas Deu certinho.