Hi,
Sorry for the type of subject i typed but i will try to explain what i am trying to do here, probably it is something already out there do that too for dbt tables.
I don't know if anyone still remember the "Old Microsoft query", it works in win98 but won't work on win 7, so i am looking for something like that, where the user can "select the table they want to query" then use "the criteria field, "the value to type" for that criteria field and "OR", means i can add as many value i want, then can execute the SQL OR QUERY.
In my case actually i can do this SQL for the criteria w/o a problem cause i will use a particular field for it, "my problem is how to enter as many values as i want and be able to add them concatenated" so them execute the sql and obtain the results in a cursor
example let say
criteria field: Job_no
Values: 117353
OR: 117357
OR: and so on until i decide to stop, now i need to exec the sql and get all the rest of the information i need in my result, i know the sql could be something like this
Select Job_no, date, field3,field4,.... from table where Job_no="117353" or job_no="117357" or job_no="######" or job_no="#####" and so on into cursor junkresult
my problem resides on how can i programaticly add the values to create this (where job_no="######" or job_no ="######" or job_no ="######" and so on, ###### this represent values, i just did not typed
Actually i will need a form where the user can enter as many OR they want and after that execute the SELECT SQL.
Any help is very welcome, in advance thanks a lot
Sorry for the type of subject i typed but i will try to explain what i am trying to do here, probably it is something already out there do that too for dbt tables.
I don't know if anyone still remember the "Old Microsoft query", it works in win98 but won't work on win 7, so i am looking for something like that, where the user can "select the table they want to query" then use "the criteria field, "the value to type" for that criteria field and "OR", means i can add as many value i want, then can execute the SQL OR QUERY.
In my case actually i can do this SQL for the criteria w/o a problem cause i will use a particular field for it, "my problem is how to enter as many values as i want and be able to add them concatenated" so them execute the sql and obtain the results in a cursor
example let say
criteria field: Job_no
Values: 117353
OR: 117357
OR: and so on until i decide to stop, now i need to exec the sql and get all the rest of the information i need in my result, i know the sql could be something like this
Select Job_no, date, field3,field4,.... from table where Job_no="117353" or job_no="117357" or job_no="######" or job_no="#####" and so on into cursor junkresult
my problem resides on how can i programaticly add the values to create this (where job_no="######" or job_no ="######" or job_no ="######" and so on, ###### this represent values, i just did not typed
Actually i will need a form where the user can enter as many OR they want and after that execute the SELECT SQL.
Any help is very welcome, in advance thanks a lot