Check if an adoquery field exists
Hello, I made an adoquery in access whose fields change each time I call it from fast report. How can I check if it's fields exist when I use it in fast report. I used this code
if <ADOQuery2.fieldbyname('aircrewstatus') = null then showmessage('don't exist'); but it does not work and this message appears ( Can't find field "aircrewstatus"). Can anyone help me?? Thanks.
if <ADOQuery2.fieldbyname('aircrewstatus') = null then showmessage('don't exist'); but it does not work and this message appears ( Can't find field "aircrewstatus"). Can anyone help me?? Thanks.
Comments
They are part of TDataset and implemented in the frx editor, should be fine, take a look at the Classes tab in the right side of the frx editor, plenty of good stuff there.
As I said, look at the tab, there is the function declaration there, with its required parameters