Jump to content

SQL Query problem


This topic is 5099 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

Hello everyone. I encountered a little problem when importing records using the Filemakers ODBC SQL query and 'calculated SQL text' option. I can make a very similiar query using the Query Builder, but then I cannot use any variables defined in my script window.

The query I get from the Query Builder is:

SELECT "my company$Sales Shipment Line"."Description"

FROM "my company$Sales Shipment Line"

WHERE "my company$Sales Shipment Line"."Document No_" = N'10101'

This should be altered so that the last number could be a variable like $document_no. I simply Cannot get this to work properly.

Just replacing the ":s with ':s won't solve the problem.

The best solution I came up with is

"SELECT 'my company$Sales Shipment Line.Description'

FROM 'my company$Sales Shipment Line'

WHERE 'my company$Sales Shipment Line.Document No_' ="& $document_no

but it does not work.

Link to comment
Share on other sites

This topic is 5099 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.