Partial Query

C

Cooptoons

I have a database to keep track of parts we have in inventory. Some of the
part have a dash revision. It would be like 7500-1234-01 or 7500-1234-02. I
would like to be able to query for just the first part of the number, the
7500-1234 and get results. Do you have an example of a script that would do
this?
 
S

S.Y.M. Wong-A-Ton

Search in this newsgroup on "Secondary data source query". You need to modify
the Command on the QueryAdapter to include a WHERE-clause that adds a
wildcard to your query. Example for db in SQL Server:

WHERE <yourpartfieldname> LIKE '7500-1234-%'

or

WHERE <yourpartfieldname> LIKE '7500-1234-__'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top