Seite 1 von 1

base report extension

Verfasst: Di 6. Nov 2018, 17:03
von steph07
Hello,
I installed basereport extension and it works fine except to print the data of the record running in a form.
the button calling the report is in a form named Spanc1
Could you give me an example of syntax for use of:
###FORMFIELD(<MainForm><SubForm><GridName><ColumnName>)###
my Mainform’ name is “Formulaire”
my GridName is called “ControleTable1”
my ColumnName is called “Etat”
I’ve tried
FORMFIELD(“Formulaire”“ControleTable1””Etat”)
FORMFIELD(“Formulaire”.”ControleTable1”.”Etat”)
FORMFIELD(“Formulaire” ”ControleTable1” ”Etat”)
FORMFIELD(“Formulaire”/”ControleTable1”/”Etat”)
and I got every time ###SQLERROR###

Thank’s.

Re: base report extension

Verfasst: Do 8. Nov 2018, 10:24
von gogo
Hi Steph,

###FORMFIELD(<Formulaire><ControleTable1><Etat>)###

should work.

I wonder why you get a ###SQLERROR### as you should get a messagebox like:
"Error! The control " & sName & " could NOT be found in " & sPathToObject & "!"

A ###SQLERROR### should appear in case of a not-SQL-string only... I think :?

Using quotation marks inside " ... ###FORMFIELD(<Formulaire><ControleTable1><Etat>)### ... " will lead to unexpected results, as they cause misinterpretation of the string for sure. That's why I choosed the <...> notation. I think I never lined out, that the use of "(", ")", ">" and "<" will cause problems ...