Click here to Skip to main content
15,891,136 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Tricky SQL Question Pin
ttocsmi25-Sep-12 14:13
ttocsmi25-Sep-12 14:13 
GeneralRe: Tricky SQL Question Pin
Bernhard Hiller25-Sep-12 23:13
Bernhard Hiller25-Sep-12 23:13 
GeneralRe: Tricky SQL Question Pin
Martijn Kok25-Sep-12 23:27
Martijn Kok25-Sep-12 23:27 
GeneralRe: Tricky SQL Question Pin
ttocsmi1-Oct-12 1:56
ttocsmi1-Oct-12 1:56 
GeneralRe: Tricky SQL Question Pin
ttocsmi1-Oct-12 1:51
ttocsmi1-Oct-12 1:51 
AnswerRe: Tricky SQL Question Pin
Bernhard Hiller25-Sep-12 23:15
Bernhard Hiller25-Sep-12 23:15 
GeneralRe: Tricky SQL Question Pin
ttocsmi1-Oct-12 2:12
ttocsmi1-Oct-12 2:12 
AnswerRe: Tricky SQL Question Pin
ttocsmi1-Oct-12 4:34
ttocsmi1-Oct-12 4:34 
Surely there's an easier way, but this is how I got it to work (I've updated the table and field names):

SQL
SELECT *
FROM art_callout_table
WHERE artboardnumber IN (
    SELECT artboardnumber FROM art_callout_table 
    WHERE artboardnumber IN (
        SELECT artboardnumber FROM art_callout_table 
        WHERE lrutext LIKE "%start%") 
    AND lrutext LIKE "%light%") 
AND lrutext LIKE "%switch%";


What confused me repeatedly during development, and what confused the users (they were expecting the search to work one way & I was assuming it to work another), is that there are two distinct search methodologies:

1) Using the built-in Access table filtering commands (or a basic SELECT FROM WHERE statement) to narrow down a table of description text values. Repeated filters can be applied to narrow the list further, but if you're looking for "switch" and "start", all you'll get is individual description text records having both values, eg "big red starting switch" or "switch start light" but not "green switch". Not terribly helpful.

2) Use a different search technique to return all ArtworkID values which have "switch" or "start" or "light" strings within their DescriptionText fields, eg don't look just for DescriptionText records similar to "switch start light blinker".

I thought this was going to be much easier than it turned out to be. Thanks all for your help.
GeneralRe: Tricky SQL Question Pin
Martijn Kok1-Oct-12 5:13
Martijn Kok1-Oct-12 5:13 
QuestionRemote SQL server connection in visual basic /VBA Pin
bsjhala25-Sep-12 2:17
bsjhala25-Sep-12 2:17 
AnswerRe: Remote SQL server connection in visual basic /VBA Pin
ChandraRam26-Sep-12 3:04
ChandraRam26-Sep-12 3:04 
Questionin the project i want to build, i already have a school results system and students should be able to request their results via sms.thus by sending their stud. id to the system number(gsm modem number) and the system automatically reading the message Pin
wizy@202024-Sep-12 23:05
wizy@202024-Sep-12 23:05 
AnswerRe: in the project i want to build, i already have a school results system and students should be able to request their results via sms.thus by sending their stud. id to the system number(gsm modem number) and the system automatically reading the mes Pin
Eddy Vluggen25-Sep-12 0:17
professionalEddy Vluggen25-Sep-12 0:17 
GeneralRe: in the project i want to build, i already have a school results system and students should be able to request their results via sms.thus by sending their stud. id to the system number(gsm modem number) and the system automatically reading the mes Pin
David Mujica25-Sep-12 4:17
David Mujica25-Sep-12 4:17 
GeneralRe: in the project i want to build, i already have a school results system and students should be able to request their results via sms.thus by sending their stud. id to the system number(gsm modem number) and the system automatically reading the mes Pin
Dave Kreskowiak25-Sep-12 4:32
mveDave Kreskowiak25-Sep-12 4:32 
GeneralRe: in the project i want to build, i already have a school results system and students should be able to request their results via sms.thus by sending their stud. id to the system number(gsm modem number) and the system automatically reading the mes Pin
Eddy Vluggen25-Sep-12 4:41
professionalEddy Vluggen25-Sep-12 4:41 
GeneralRe: in the project i want to build, i already have a school results system and students should be able to request their results via sms.thus by sending their stud. id to the system number(gsm modem number) and the system automatically reading the mes Pin
Otto Grunf25-Sep-12 9:02
Otto Grunf25-Sep-12 9:02 
GeneralRe: in the project i want to build, i already have a school results system and students should be able to request their results via sms.thus by sending their stud. id to the system number(gsm modem number) and the system automatically reading the mes Pin
Eddy Vluggen25-Sep-12 9:05
professionalEddy Vluggen25-Sep-12 9:05 
QuestionInternal Persistent Database Pin
Dominick Marciano24-Sep-12 18:06
professionalDominick Marciano24-Sep-12 18:06 
AnswerRe: Internal Persistent Database Pin
Richard MacCutchan24-Sep-12 22:09
mveRichard MacCutchan24-Sep-12 22:09 
GeneralRe: Internal Persistent Database Pin
Dominick Marciano25-Sep-12 5:24
professionalDominick Marciano25-Sep-12 5:24 
GeneralRe: Internal Persistent Database Pin
Richard MacCutchan25-Sep-12 5:59
mveRichard MacCutchan25-Sep-12 5:59 
GeneralRe: Internal Persistent Database Pin
Dominick Marciano25-Sep-12 6:31
professionalDominick Marciano25-Sep-12 6:31 
GeneralRe: Internal Persistent Database Pin
Richard MacCutchan25-Sep-12 6:58
mveRichard MacCutchan25-Sep-12 6:58 
GeneralRe: Internal Persistent Database Pin
Dominick Marciano25-Sep-12 7:10
professionalDominick Marciano25-Sep-12 7:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.