Options

Navision native database C/ODBC WHERE-clause

subzerosubzero Member Posts: 2
Hello,

I am currently working on a project to generate EAN13-type barcodes for our products.

I am using the C/ODBC driver to access our native Navision database server (v3.70).

I've run into a problem though. I cannot figure how to write a proper WHERE-clause, that the C/ODBC driver will accept.

I have tried to write it like:
SELECT * FROM "Stregkode opsætning" WHERE Nummer = 100
and
SELECT * FROM "Stregkode opsætning" WHERE Nummer = "100"
and
SELECT * FROM "Stregkode opsætning" WHERE "Nummer" = "100"

the query string works fine without the WHERE-clause.

How can I write this properly?

- Thanks in advance

Best Regards
Kenneth Fuglsang

Comments

  • Options
    bobyboby Member Posts: 78
    Hello,
    try to make your query in excel and copy the sql statement from MSquery..
    I should work
  • Options
    fbfb Member Posts: 246
    Did you try this?

    SELECT * FROM "Stregkode opsætning" WHERE Nummer = '100'
Sign In or Register to comment.