why will resfresrecord not working

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jkuiper
Posts: 138
Joined: Fri 04 Aug 2006 14:17

why will resfresrecord not working

Post by jkuiper » Fri 04 Dec 2009 15:00

This is my query

Code: Select all

SELECT facturen.factuurID, facturen.factuurnummer, contracten.contractnummer, 
       contracten.contractID,
       facturen.jaar, facturen.maand, facturen.factuurbedrag, facturen.betaald, 
       CONCAT(aanvragers.voornaam,' ', aanvragers.tussenvoegsels,' ',aanvragers.klantnaam) AS klantvoluit,
       CONCAT(gastouder.voornaam,' ',gastouder.tussenvoegsels,' ',gastouder.oudernaam) AS gastoudervoluit
FROM facturen
  LEFT OUTER JOIN contracten ON facturen.contractID = contracten.contractID
  INNER JOIN aanvragers ON contracten.klantID = aanvragers.klantID
  INNER JOIN gastouder ON contracten.gastouderID = gastouder.ouderID
ORDER BY facturen.factuurnummer DESC
The user of the application can push on a button to tell the application the invoice is payed. But when I using refreshrecord, Delphi comes with this error

Code: Select all

Project ChildHome.exe raised exception class EMySqlException with message '
#42S22Unknown column 'klantvoluit' in 'field list''.
Offcourse I can do a full refresh, but why should I do this and not only for one record by using refreshrecord?

swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Post by swierzbicki » Sat 05 Dec 2009 08:37

You should set the FullRefresh option to true. It will works then.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Mon 07 Dec 2009 07:51

Please let me know if the problem was solved.

Post Reply