Re: What Character?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"SELECT stores FROM mall WHERE stores LIKE 'Sears*'"

if you're referring to a control on a form, rather than a hard-coded value,
the syntax would be

"SELECT stores FROM mall WHERE stores LIKE '" _
& Me!ControlName & "*'"

hth


"Mr. JYC" <MrJYC@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:98610DA7-CA10-45F3-8934-CCF263DA9106@xxxxxxxxxxxxxxxx
Hello,

When I am generating a SQL statement to be used in programming, what
character should I use for " for instance,

select stores from mall where stores like "Sears*";

I am trying to build a string from the above statement but I don't know
what
to use for the " character.

So, the statement would look like

str = "select stores from mall where stores like" & Sears*

but I am stuck with what to use for what to put around Sears* so that the
SQL statement would execute properly.

Please help.

--
Thank you for your help!
JYC


.



Relevant Pages

  • Re: Data manipulation in a user defined function
    ... This is a dynamic query builder component that simply ... stores off a SQL statement that a downstream process executes. ...
    (microsoft.public.sqlserver.programming)
  • need sql statement for complex address search
    ... we have a database that stores addresses. ... I need to come up with 1 SQL statement (and it can't be PL/SQL) that will check if there's a hypen and if so, search in both the MY_PREFIX and MY_NUMBER fields. ...
    (comp.databases.oracle.misc)
  • Need help with SQL Statement
    ... I have a table that stores when an agent logs on and off a phone. ... How can I write an sql statement that will show me the following: ... DATE, INTERVAL, AGENT_ID, DURATION ...
    (microsoft.public.sqlserver.datamining)
  • Re: Why do people pay so much for gift certificates?
    ... >>>Because the mall gets a percentage of every dime spent in its stores. ... >>>So there is no reason to charge two bucks apiece for the clerk's labor. ... >> certificate can spend the cash in another mall. ...
    (alt.marketing.online.ebay)
  • Re: OT--More bias in the press...especially from those liberal news organizations
    ... The actual article simply says that mall merchants had vastly different ... Mall Stores See Trouble in Sales Data ... As the nation's retail executives began poring over, ...
    (rec.boats)