Re: Checking for value in a table

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



suggest you try using a DLookup() function, rather than opening a recordset
based on a SQL statement. see Access Help for more information on the
function. and btw, if you really have a field in your table named "Value",
suggest you change it. Value is a property of controls in forms and reports,
and using it as the name of something you created (a field in a table) may
very likely cause problems.

hth


"BobbyS" <BobbyS@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4DD68FEB-20B9-4FF4-97C2-48178A4043CC@xxxxxxxxxxxxxxxx
> How would I write an SQL statement that would find the value (from a
variable
> strCheck) in a table (tblNames) in field named [Value]? and if that exists
> then GoTo GetMeOut?
>
> Thank you.


.



Relevant Pages

  • Re: From-subform
    ... Upon opening this form I want to be able to set the recordset of the subform. ... to an SQL statement. ...
    (microsoft.public.access.formscoding)
  • Re: SQL string problem
    ... "Jake Marx" ... ... > Just pass your SQL statement through this function when opening your ... Your function rendered my SQL statement as: ...
    (microsoft.public.excel.programming)
  • Re: Filter Property
    ... opening the recordset with an SQL statement like "SELECT * FROM ... TABLE" results in a recordset that does not support indexes. ...
    (microsoft.public.access.queries)
  • Response.write statement does not work properly
    ... the result of the sql statement in the page before opening ... the recordset. ... False as Response.write value of the sql statement. ... strsql = "SELECT tblGMISSpecialConditions.IntID, ...
    (microsoft.public.inetserver.asp.db)
  • Re: Using For...Each loops when referencing reports.
    ... SELECT tblTx.*, tblTestTx.* FROM tblTx INNER JOIN tblTestTx ON ... 199 is just the ID in your last SQL statement. ... This will now write the exact SQL statement used to open the recordset to ...
    (microsoft.public.access.modulesdaovba)