David Hurtado
2008-09-22 21:08:35 UTC
I'm having a difficult time trying to make a dynamic lookupSQL:
with (this.REQA1.rowset)
fields["COMCOD"].lookupSQL = 'SELECT "COMCOD",COMCOD FROM "COMMOD.dbf" COMCOD WHERE COMPNY = REQA1.COMPNY'
endwith
I want to pass the COMPNY value from the REQA1 rowset to the SQL statement in.
Any one has any idea how to pass a value the SQL statement for the LOOKUP so that I can filter only the value corresponding to COMPNY.
Thank you much.
David
with (this.REQA1.rowset)
fields["COMCOD"].lookupSQL = 'SELECT "COMCOD",COMCOD FROM "COMMOD.dbf" COMCOD WHERE COMPNY = REQA1.COMPNY'
endwith
I want to pass the COMPNY value from the REQA1 rowset to the SQL statement in.
Any one has any idea how to pass a value the SQL statement for the LOOKUP so that I can filter only the value corresponding to COMPNY.
Thank you much.
David