Skip to main content
IvanGn
Participant
September 4, 2018
Answered

Filemaker Error Code?

  • September 4, 2018
  • 2 replies
  • 529 views

Hi everyone,

Its been stumping me for a few days and I thought I'd ask the experts out here.

Basically, its not recognizing my variable, although it has been set already.

Am I using the wrong syntax?

I'm using ColdFusion 10 and using Filemaker Pro Advanced 15.

    This topic has been closed for replies.
    Correct answer pete_freitag

    Try using cfqueryparam -- it is also more secure:

    WHERE IDStudent IN (<cfqueryparam value="#StudList#" list="true" cfsqltype="cf_sql_varchar">)

    Also you may get a database error with an IN statement if your variable StudList is empty.

    2 replies

    pete_freitag
    pete_freitagCorrect answer
    Participating Frequently
    September 4, 2018

    Try using cfqueryparam -- it is also more secure:

    WHERE IDStudent IN (<cfqueryparam value="#StudList#" list="true" cfsqltype="cf_sql_varchar">)

    Also you may get a database error with an IN statement if your variable StudList is empty.

    IvanGn
    IvanGnAuthor
    Participant
    September 4, 2018

    Thank you so much! It worked like a charm!

    WolfShade
    Legend
    September 4, 2018

    I have zero experience with Filemaker Pro, but I did find this in a Google search.  I hope it helps.

    V/r,

    ^ _ ^