SQL Like and Access database

i have to retrieve data from access based on Emp_ID extracted from Sql DB. the queries looks like the following:
Can i do 3 queries and do something like the following:
<cfquery datasource="MasterSQL" username="***" password="***" name="SQLQRY">
     Select Employee.Emp_Name, Salary.Emp_ID
     From Employee inner join Salary on (Employee.Emp_ID = Salary.Emp_ID) AND (Employee.SectionName = Salary.SectionName)
     Where Emp_Name like <cfqueryparam value="%#arguments.search#%" cfsqltype="Sql_VarChar">
</cfquery>
<cfquery datasource="MasterDB" name="AccessQRY">
     Select Emp_Pro.Emp_ID
     From Emp_Pro
     WHERE Emp_Pro.Emp_ID like ("%#ValueList(SQLQRY.Emp_ID)#%")
</cfquery>
<cfquery datasource="MasterDB" name="AccessQRY2">
     Select Emp_Info.Desc,
     From Emp_Info inner join Emp_Pro on (Emp_Info.Emp_ID = Emp_Pro.Emp_ID) AND (Emp_Info.Con = Emp_Pro.Con)
     WHERE Emp_Info.Emp_ID IN
this block will change too...
( <cfqueryparam
value="#ValueList(SQLQRY.Emp_ID)#"
cfsqltype="cf_sql_integer"
list="true">
</cfquery>
What do i have to change to make this query work...

I did the follwoing:
<cfquery datasource="MasterSQL" username="***" password="***" name="SQLQRY">
    Select Employee.Emp_Name, Salary.Emp_ID
    From Employee inner join Salary on (Employee.Emp_ID = Salary.Emp_ID) AND (Employee.SectionName = Salary.SectionName)
    Where Emp_Name like <cfqueryparam value="%#arguments.search#%" cfsqltype="Sql_VarChar">
</cfquery>
<cfquery name ="AcessQRY"
<cfloop query = "AcessID">
     Select Emp_Info.Desc, Emp_Pro.Emp_ID
     From Emp_Info inner join Emp_Pro on (Emp_Info.Emp_ID = Emp_Pro.Emp_ID) AND (Emp_Info.Con = Emp_Pro.Con)
     WHERE Emp_Pro.Emp_ID LIKE '%#Right(SQLQRY.Emp_ID,4)#%'
     union
</cfloop>
     select Emp_Info.Desc, Emp_Pro.Emp_ID
     from Emp_Info inner join Emp_Pro on (Emp_Info.Emp_ID = Emp_Pro.Emp_ID) AND (Emp_Info.Con = Emp_Pro.Con)
     where 1= 2
<cfquery>
But this is not working either.
How can i put a like condition in the where clause so that it satisafy a condition like following where SQL returns A 1000 and it has to match with 1000** in Access DB
The form number from the first query looks like the following:
A 1000
A 1123
A 23456
B 450674
The form number in the second query looks like
1000**
1123***
23456**
450674***
Any help is appreciated...

Similar Messages

  • Oracle sql developer and access db

    Hi All,
    I have connection to oracle and Access dbs’ on my oracle sql developer.
    When i try to create a database link from oracle db to access db i have to add Host Name.
    Connection details to access looks like this :
    @jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=C:\ list.mdb;DriverID=22;READONLY=false}
    I tried different variants, but it doesn’t work.
    Is this possible to create database link to access db, and if yes, what i have to add for a host name and what is the syntaxes for cross table ?
    Thank you

    Good documentation here... http://www.orafaq.com/node/60
    TimS

  • Problems with Dynamical SQL Querys on Access Databases!

    This thread is for everyone who has the same problems like me.
    I tried to change SQL-Querys via Javascript to fill in my PDF sheet some data from my database.
    But whenever I want to change the Query, I never get some data back.
    The main problem was:
    THE ACCESS DATABASE
    Access has locked the database whenever I tried to run the Query.
    Now Iam using MySQL and everything is working fine.

    This thread is for everyone who has the same problems like me.
    I tried to change SQL-Querys via Javascript to fill in my PDF sheet some data from my database.
    But whenever I want to change the Query, I never get some data back.
    The main problem was:
    THE ACCESS DATABASE
    Access has locked the database whenever I tried to run the Query.
    Now Iam using MySQL and everything is working fine.

  • Uk date format issue with ASP and Access Database

    I have an Asp form which updates records in an Access
    database. Problem is
    that the date format in the database record is dd/mm/yyyy
    (UK), when
    the record is displayed on the form it is mm/dd/yyyy(US)
    which after I
    update the record in the database the date has changed to the
    new format.
    I have tried everything I can to change the format but to no
    avail...anyone any ideas how I can resolve this issue?
    Thanks
    Steve

    stevo.s wrote:
    > Hi
    >
    > I have tried changing the format on the date field on
    the server behaviours
    > panelto ddmmyyy. Also have tried to set the form field
    format to ddmmyy. I have
    > also tried to use a function I got from a posting
    somehwere on the net to no
    > avail. <%function ddmmyyyy(varDate)
    > ddmmyyyy = Day(DateValue(varDate)) & "/" &
    Month(DateValue(varDate))
    > & "/" & Year(DateValue(varDate))
    > end function
    >
    > I believe that this is a recognised issue with
    Dreamweaver and Access but
    > can't seem to grasp the work around! Problem being I am
    teaching myself through
    > books and internet articles and can be weeks at a time
    without being able to
    > look at the issue..each time I come back to it it is
    like starting all over
    > again! I was hoping that somewhere out there there is a
    simple solution the
    > issue perhaps a date picker with the built in
    functionality to address the
    > issue...I am keen to understand how to deal with the
    issue rather than just
    > change my database date field to fudge the problem as I
    am in the UK and when I
    > eventually start to use the application I would like
    there to be some
    > consistency with dates and that users are familiar with
    the format.
    >
    > Any help gratefully received!
    Its not Dreamweaver, or Access, its your servers locale, its
    set to US
    format, not the UK.
    On your page at the top use:
    <% Session.LCID = 2057 %>
    This will force the page into using UK formatted dates. Use
    it on any
    page that needs to format the page correctly.
    Dooza
    Posting Guidelines
    http://www.adobe.com/support/forums/guidelines.html
    How To Ask Smart Questions
    http://www.catb.org/esr/faqs/smart-questions.html

  • Java and Access database

    Hello,
    I have an application with an access database. The access database (the access file) is in the same directory as all java files in c:\programs\eclipse\workspace\javaBooks.
    The connection method looks as follows:
    public boolean getConnection(String url,String user, String passw)
    try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         con = DriverManager.getConnection(url,user,passw);          
    DatabaseMetaData dbmd = con.getMetaData();
         System.out.println("Connected to " + dbmd.getURL());
         System.out.println("Version " + dbmd.getDriverVersion());
         System.out.println("DBMS: " + dbmd.getDatabaseProductName());
         return true;
         //System.out.println("AutoCommit: " + con.getAutoCommit());
         //rs=dbmd.getTables(null,"%","%",null); // Driver is not capable!
         catch (java.sql.SQLException e)
              System.err.println("Can't connect to database");
              System.err.println(e.getMessage());
              return false;
         catch (ClassNotFoundException e)
              System.err.println("Can't connect to database");
              System.err.println(e.getMessage());
              return false;
    At the beginning when I start the application a form is displayed where I have to indicate an url and a password.
    Does anybody know how I have to configure the corresponding things to use the database with the application?

    You access (ahem) Access through the JdbcOdbcDriver,
    which comes with Java.Not bad, not bad.
    World spins
    RD-R
    � {�                                                                                                                                                                                                                                                   

  • Crystal Reports and Access database connection error

    I had this in a different forum with no hits, so I am trying this one.
    A person that I work with has multiple reports set up that pulls from an Access database that is password protected. When we moved everything over to a new computer, those reports now say that it cannot access the fields inside the database. It never pops up with a login screen either, like it does on the old computer. I played around with the ODBC, with no luck, couldn't get anything to work. I have also tryed relinking the database, but I keep getting connection problems. We are on a network, so her settings should have all moved with the new computer. Along with the database and the reports being on the server, so they were never moved. I am thinking it has something to do with a system file.
    I also found this document on this site, but cannot find the download it mentions, sounds similar to my problem.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/208b8fe5-681e-2b10-d2bb-b201f266d0ab
    Does anybody know how to fix this without the utility mentioned in the above link, or know where I can get the utility??
    We are using Access 2007 and Crystal Reports 7.  The database is not save as an Access 2007 database, but a regular mdb.
    Please Help!

    Post Author: ejthunder
    CA Forum: Crystal Reports
    Hello Chris,
    Crystal Reports does not store the database password with the RPT file.  This is by design (Crystal is not a database security product).  This is true of all versions of Crystal Reports.
    If your users need to see fresh data when opening the reports then they will have to log in by providing at least the password.
    You can send reports with Saved Data that won't try to hit the database, but the data won't refresh either.  To save data with the report go to the File menu and click next to Save Data with Report.  Refresh the report and then save it.  The report will now have saved data and won't try to hit the database when opened.  If the user hits the refresh button then they will get prompted to log into the database.
    I hope this helps.
    EJ

  • SQL Developer and Access with password issue

    I have Windows 7 64bits, Developer Version 2.1.1.64 and Access 2007.
    Created a MDB file added 2 tables, enabled de system tables and set a password.
    I try to configure connection but it gives a "Not Valid Password" error.
    I use on username: Admin
    And the password I'd set.
    What could be the error?
    I unset the password and it works fine.

    The password I had set was Database password and not user login so maybe there's no hope on this one, for now...

  • Flex 2 and Access Database

    I want to know if flex is able to access an access database
    either via coldfusion or flash remoting?

    1) I don't know much about flash remoting, but sure flex
    application would be able to access any coldfusion app. and it
    won't matter what db CF app is fronting.
    2) if i understand your question correctly, you're talking
    about the webserver? if that's the case all you need to have on the
    server is the SWF file.
    ATTA

  • Vista Dreamweaver and Access database

    I am trying to connect an Access database to an aspx-page in
    Dreamweaver and
    all I get is 'The program has stopped working'
    How can I avoid this?
    reidarT

    I am trying to connect an Access database to an aspx-page in
    Dreamweaver and
    all I get is 'The program has stopped working'
    How can I avoid this?
    reidarT

  • CS5 Dreamweaver and Access database

    I have set up a connection from DW to an Access database and I have found a problem returning a record to a new ASP page from an ASP page with a Log In User server behaviour. I get the following error message:
    ADODB.Field
    error '800a0bcd'
    Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
    /Access Database Work/2 Homepage.asp, line 34
    The expected result is that the user logs on correctly and the second page is displayed with their details. My recordset on the second page has a filter that needs to equal one of the inputs from a form element on the inital page. This all works perfectly when not using the Log In User server behaviour and I just create my own form.
    I have tried adapting code and setting values to variables to pull through (I have a basic understanding of code), but I am a real beginner with ASP and not sure of syntax etc. and just keeping creating more errors.
    Any sugggestions would be really appreciated.

    Thank you for your response Murray *ACP*
    Below is the code for the initial page, which containls the Log In User server behaviour:
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
    <!--#include file="Connections/connAccessDatabase.asp" -->
    <%
    ' *** Validate request to log in to this site.
    MM_LoginAction = Request.ServerVariables("URL")
    If Request.QueryString <> "" Then MM_LoginAction = MM_LoginAction + "?" + Server.HTMLEncode(Request.QueryString)
    MM_valUsername = CStr(Request.Form("txtID"))
    If MM_valUsername <> "" Then
      Dim MM_fldUserAuthorization
      Dim MM_redirectLoginSuccess
      Dim MM_redirectLoginFailed
      Dim MM_loginSQL
      Dim MM_rsUser
      Dim MM_rsUser_cmd
      MM_fldUserAuthorization = ""
      MM_redirectLoginSuccess = "2 Homepage.asp"
      MM_redirectLoginFailed = "incorrect.html"
      MM_loginSQL = "SELECT userID, password"
      If MM_fldUserAuthorization <> "" Then MM_loginSQL = MM_loginSQL & "," & MM_fldUserAuthorization
      MM_loginSQL = MM_loginSQL & " FROM [customers logon] WHERE userID = ? AND password = ?"
      Set MM_rsUser_cmd = Server.CreateObject ("ADODB.Command")
      MM_rsUser_cmd.ActiveConnection = MM_connAccessDatabase_STRING
      MM_rsUser_cmd.CommandText = MM_loginSQL
      MM_rsUser_cmd.Parameters.Append MM_rsUser_cmd.CreateParameter("param1", 200, 1, 255, MM_valUsername) ' adVarChar
      MM_rsUser_cmd.Parameters.Append MM_rsUser_cmd.CreateParameter("param2", 200, 1, 255, Request.Form("txtPWord")) ' adVarChar
      MM_rsUser_cmd.Prepared = true
      Set MM_rsUser = MM_rsUser_cmd.Execute
      If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then
        ' username and password match - this is a valid user
        Session("MM_Username") = MM_valUsername
        If (MM_fldUserAuthorization <> "") Then
          Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value)
        Else
          Session("MM_UserAuthorization") = ""
        End If
        if CStr(Request.QueryString("accessdenied")) <> "" And false Then
          MM_redirectLoginSuccess = Request.QueryString("accessdenied")
        End If
        MM_rsUser.Close
        Response.Redirect(MM_redirectLoginSuccess)
      End If
      MM_rsUser.Close
      Response.Redirect(MM_redirectLoginFailed)
    End If
    %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <p>Enter your details</p>
    <form id="form1" name="form1" method="POST" action="<%=MM_LoginAction%>">
      <table width="30%" height="59" border="0" cellpadding="5" cellspacing="0">
        <tr>
          <td width="103">User ID</td>
          <td width="368"><input type="text" name="txtID" id="txtID" /></td>
        </tr>
        <tr>
          <td>Password</td>
          <td width="368"><input type="text" name="txtPWord" id="txtPWord" /></td>
        </tr>
        <tr>
          <td> </td>
          <td width="368"><input type="submit" name="button" id="button" value="Submit" /></td>
        </tr>
      </table>
    </form>
    <p> </p>
    </body>
    </html>
    Below is the code for the second page which show the appropriate record depending on the user ID
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
    <!--#include file="Connections/connAccessDatabase.asp" -->
    <%
    Dim rstest__MMColParam
    rstest__MMColParam = "1"
    If (Request.Form("txtID") <> "") Then
      rstest__MMColParam = Request.Form("txtID")
    End If
    %>
    <%
    Dim rstest
    Dim rstest_cmd
    Dim rstest_numRows
    Set rstest_cmd = Server.CreateObject ("ADODB.Command")
    rstest_cmd.ActiveConnection = MM_connAccessDatabase_STRING
    rstest_cmd.CommandText = "SELECT * FROM [customers logon] WHERE userID = ?"
    rstest_cmd.Prepared = true
    rstest_cmd.Parameters.Append rstest_cmd.CreateParameter("param1", 200, 1, 255, rstest__MMColParam) ' adVarChar
    Set rstest = rstest_cmd.Execute
    rstest_numRows = 0
    %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    welcome
    <%=(rstest.Fields.Item("userID").Value)%>
    </body>
    </html>
    <%
    rstest.Close()
    Set rstest = Nothing
    %>

  • ImageIcon and Access Database

    Hello,
    Does anyone know how to store ImageIcon from the interface into Access Database and retrieve ImageIcon from Access Database to the interface?
    Thanks,
    Daniel

    Well, this page has some examples for storing and retrieving images as BLOBs from databases:
    http://java.sun.com/developer/onlineTraining/Database/JDBC20Intro/exercises.html
    As for getting the image, you wouldn't generally store the raw image, but would save it as a JPEG or other format. If you search this forum for "save JPEG", I'm sure you'll find many posts on the topic.

  • Dreamweaver CS5 and Access Database

    I have set up a connection from DW to an Access database and I have found a problem returning a record to a new ASP page from an ASP page with a Log In User server behaviour.  I get the following error message:
    ADODB.Field
    error '800a0bcd' 
    Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. 
    /Access Database Work/2 Homepage.asp, line 34
    The expected result is that the user logs on correctly and the second page is displayed with their details.  My recordset on the second page has a filter that needs to equal one of the inputs from a form element on the inital page.  This all works perfectly when not using the Log In User server behaviour and I just create my own form.
    I have tried adapting code and setting values to variables to pull through (I have a basic understanding of code), but I am a real beginner with ASP and not sure of syntax etc. and just keeping creating more errors.
    Any sugggestions would be really appreciated.

    Here is the code for the Log In User server behaviour page:
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
    <!--#include file="Connections/connAccessDatabase.asp" -->
    <%
    ' *** Validate request to log in to this site.
    MM_LoginAction = Request.ServerVariables("URL")
    If Request.QueryString <> "" Then MM_LoginAction = MM_LoginAction + "?" + Server.HTMLEncode(Request.QueryString)
    MM_valUsername = CStr(Request.Form("txtID"))
    If MM_valUsername <> "" Then
      Dim MM_fldUserAuthorization
      Dim MM_redirectLoginSuccess
      Dim MM_redirectLoginFailed
      Dim MM_loginSQL
      Dim MM_rsUser
      Dim MM_rsUser_cmd
      MM_fldUserAuthorization = ""
      MM_redirectLoginSuccess = "2 Homepage.asp"
      MM_redirectLoginFailed = "incorrect.html"
      MM_loginSQL = "SELECT userID, password"
      If MM_fldUserAuthorization <> "" Then MM_loginSQL = MM_loginSQL & "," & MM_fldUserAuthorization
      MM_loginSQL = MM_loginSQL & " FROM [customers logon] WHERE userID = ? AND password = ?"
      Set MM_rsUser_cmd = Server.CreateObject ("ADODB.Command")
      MM_rsUser_cmd.ActiveConnection = MM_connAccessDatabase_STRING
      MM_rsUser_cmd.CommandText = MM_loginSQL
      MM_rsUser_cmd.Parameters.Append MM_rsUser_cmd.CreateParameter("param1", 200, 1, 255, MM_valUsername) ' adVarChar
      MM_rsUser_cmd.Parameters.Append MM_rsUser_cmd.CreateParameter("param2", 200, 1, 255, Request.Form("txtPWord")) ' adVarChar
      MM_rsUser_cmd.Prepared = true
      Set MM_rsUser = MM_rsUser_cmd.Execute
      If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then
        ' username and password match - this is a valid user
        Session("MM_Username") = MM_valUsername
        If (MM_fldUserAuthorization <> "") Then
          Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value)
        Else
          Session("MM_UserAuthorization") = ""
        End If
        if CStr(Request.QueryString("accessdenied")) <> "" And false Then
          MM_redirectLoginSuccess = Request.QueryString("accessdenied")
        End If
        MM_rsUser.Close
        Response.Redirect(MM_redirectLoginSuccess)
      End If
      MM_rsUser.Close
      Response.Redirect(MM_redirectLoginFailed)
    End If
    %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <p>Enter your details</p>
    <form id="form1" name="form1" method="POST" action="<%=MM_LoginAction%>">
      <table width="30%" height="59" border="0" cellpadding="5" cellspacing="0">
        <tr>
          <td width="103">User ID</td>
          <td width="368"><input type="text" name="txtID" id="txtID" /></td>
        </tr>
        <tr>
          <td>Password</td>
          <td width="368"><input type="text" name="txtPWord" id="txtPWord" /></td>
        </tr>
        <tr>
          <td> </td>
          <td width="368"><input type="submit" name="button" id="button" value="Submit" /></td>
        </tr>
      </table>
    </form>
    <p> </p>
    </body>
    </html>
    Below is the code for the code that should return the record that matches the user ID:
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
    <!--#include file="Connections/connAccessDatabase.asp" -->
    <%
    Dim rstest__MMColParam
    rstest__MMColParam = "1"
    If (Request.Form("txtID") <> "") Then
      rstest__MMColParam = Request.Form("txtID")
    End If
    %>
    <%
    Dim rstest
    Dim rstest_cmd
    Dim rstest_numRows
    Set rstest_cmd = Server.CreateObject ("ADODB.Command")
    rstest_cmd.ActiveConnection = MM_connAccessDatabase_STRING
    rstest_cmd.CommandText = "SELECT * FROM [customers logon] WHERE userID = ?"
    rstest_cmd.Prepared = true
    rstest_cmd.Parameters.Append rstest_cmd.CreateParameter("param1", 200, 1, 255, rstest__MMColParam) ' adVarChar
    Set rstest = rstest_cmd.Execute
    rstest_numRows = 0
    %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    welcome
    <%=(rstest.Fields.Item("userID").Value)%>
    </body>
    </html>
    <%
    rstest.Close()
    Set rstest = Nothing
    %>

  • How to get the SQL Primary and Mirrored Database Server Name from Witness Server

    Hello,
                    Can Someone help me with the way to get SQL Primary and Mirrored server name from Witness server?
    Any Powershell script/SQL Query..etc or share the alternative?
    Regards,
    Julie

    select principal_server_name,mirror_server_name,* from sys.database_mirroring_witnesses
    -Prashanth

  • Applet and Access Database

    How can I use an Access Database with a web applet? I can do it on my machine because I can set the data source. However, I can't set the data source on the server I'm uploading my web page to. Suggestions?

    You may be able to find some third party vendor that wrote a JDBC driver for Access that allows you to connect directly, but I doubt you'll find one.
    I don't know what you are needing to do exactly, but have you considered using an XML file?

  • SQL Syntax for Access database

    This pertains to LV only due to the fact that LV requires a slightly different syntax for SQL statements for use with Access than what you will see in the Access Queries SQL view.  For instance, I discovered that if you use a  ?  for a character placeholder  (can be any single character) in Access, you need to use an  _  (underscore)  for this feature.  I also discoverd that you use a % sign instead of an *  (asterisk) for any number of characters.
    The lat thing I am having trouble with is specifying a range of characters that could be in a certain position in the text field.  For instance, if the first character can be only an alpha between  A and Z, and the next two characters can be numbers anywhere from 1 to 12,  I would use   LIKE "[A-Z][1-12]*"      In LV, the double quotes are are replaced with single quotes but I cannot figure out what to replace the brackets with. 
    The brackets do not return a syntax error but also do not return any results that should fit the pattern.
    I have tried parenthesis, double quotes, using a TO in place of the dash, etc.
    Any input on this is very much appreciated.
    Doug
    I guess sometimes writing the problem out helps one deduce the answer by taking a closer look at what has been tried and what has not.
    So  LIKE "[A-Z][1-12]*"   in Access will be   LIKE ('[A-Z][01-12]%')  in LV.    I hadn't tried the pecent sign in place of the asterisk using the brackets.    Too bad this stuff isn't spelled out in detail somewhere.
    Doug
    "My only wish is that I am capable of learning each and every day until my last breath."

    Thanks Danubio for the links.  The one for the SQL utility may be helpful as I go forward.
    Mike,  yes I am using the connectivity toolkit.  It's what I cut my teeth on and up to this point, has not caused me any issues.   I rarely make changes after implementation but if I do, the use of typedef's keeps it pretty painless.  A brief read on the doc included in your referenced zip file confirms there are alternate methods to talks to the database tables  (I am not a one table programmer).  When time permits, I will do some trials and if warranted, will try some of your techniques at some point.  Simply not enough time currently.
    As I posted intially, I actually solved my problem before there were any replies and included my solution in the first post.  Why there is a syntax difference going from LV to an mdb is an unknown to me but it exists nonetheless.
    Thanks for the input on this
    Doug
    "My only wish is that I am capable of learning each and every day until my last breath."

Maybe you are looking for