Advanced filter recordset asp

Hi,
I m trying to filter an asp recordset with % wildcart but impossible to do it.
Have got a asp form with a dropdown list based on a recordset that stores value (numeric) in a variable (id).
So this variable is used on my result asp page to filter a new recordset by this numeric value.
Im using wild card in order to display all records like this SQL query:
SELECT *
FROM proprietes
WHERE ville LIKE %MMColParam%           
MMColParam defined like this :
Numeric
Request.Form("ville")
default value %
So when it generates sql query, it gives SELECT *FROM proprietes WHERE ville LIKE '%MMColParam%' and testing it, it works (testing recordset in dream) but saving it and reopens recordset the query becomes :   SELECT *FROM proprietes WHERE ville LIKE %MMColParam%   and testing recordset gives error !!
Someone can help me?
Thanks a lot.

Hi thanks a lot
Here my asp form :
Request form "ville" value is coming from access database and is a numeric value (autoid) wich is used to filer recordset on results page.
I done this type of fiter several times with other version of dreamweaver but with CS4 impossible to do it (or i missed something!!)
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="Connections/immo.asp" -->
<%
Dim local
Dim local_cmd
Dim local_numRows
Set local_cmd = Server.CreateObject ("ADODB.Command")
local_cmd.ActiveConnection = MM_immo_STRING
local_cmd.CommandText = "SELECT * FROM villes"
local_cmd.Prepared = true
Set local = local_cmd.Execute
local_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>Document sans titre</title>
</head>
<body>
<p> </p>
<p> </p>
<form id="form1" name="form1" method="post" action="resultats3.asp">
  <p> </p>
  <p>
    <label>
      <select name="ville" id="ville">
        <option value="%" <%If (Not isNull((local.Fields.Item("idville").Value))) Then If ("%" = CStr((local.Fields.Item("idville").Value))) Then Response.Write("selected=""selected""") : Response.Write("")%>>Indifférent</option>
        <%
While (NOT local.EOF)
%>
<option value="<%=(local.Fields.Item("idville").Value)%>" <%If (Not isNull((local.Fields.Item("idville").Value))) Then If (CStr(local.Fields.Item("idville").Value) = CStr((local.Fields.Item("idville").Value))) Then Response.Write("selected=""selected""") : Response.Write("")%> ><%=(local.Fields.Item("ville").Value)%></option>
        <%
  local.MoveNext()
Wend
If (local.CursorType > 0) Then
  local.MoveFirst
Else
  local.Requery
End If
%>
      </select>
    </label>
  </p>
  <p> </p>
  <p> </p>
  <p>
    <label>
      <input type="submit" name="button" id="button" value="Envoyer" />
    </label>
  </p>
</form>
<p> </p>
<p> </p>
</body>
</html>
<%
local.Close()
Set local = Nothing
%>
Here my asp results page:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="Connections/immo.asp" -->
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "%"
If (Request.Form("ville") <> "") Then
  Recordset1__MMColParam = Request.Form("ville")
End If
%>
<%
Dim Recordset1
Dim Recordset1_cmd
Dim Recordset1_numRows
Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
Recordset1_cmd.ActiveConnection = MM_immo_STRING
Recordset1_cmd.CommandText = "SELECT * FROM proprietes WHERE ville Like ?"
Recordset1_cmd.Prepared = true
Recordset1_cmd.Parameters.Append Recordset1_cmd.CreateParameter("param1", 5, 1, -1, "%" + Recordset1__MMColParam + "%") ' adDouble
Set Recordset1 = Recordset1_cmd.Execute
Recordset1_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>Document sans titre</title>
</head>
<body>
<p><br />
  <%
response.write(request.form("ville"))%>
  <br />
  <br />
  SELECT * <br />
  FROM proprietes<br />
  WHERE ville LIKE '%vil%'
</p>
<p> </p>
<p><br />
  <br />
</p>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>

Similar Messages

  • Syntax error in OBIEE generated Physical query - Advance filter concept

    I encountered a syntax error when running a report with the help of advanced filter concept.
    I am getting syntax error at the physical query generated by the OBIEE for main report.
    I used a sub report with the help of advanced filter concept in main report.
    I am posting the physical query for the convenience.
    select D1.c2 as c1,
    D1.c1 as c2
    from
    (select sum(T600347.sales_usd) as c1,
    T601002.currency as c2
    from
    (Select distinct currency from pfact) T601002,
    pfact T600347
    where ( T600347.currency = T601002.currency and T600347.pdate between ( select distinct min(D1.c1) as c1* from
    (select D1.c1 as c1
    from
    (select D1.c1 as c1
    from
    *(select max(T600425.pdate) as c1*
    from
    *(select distinct pdate from pdates where pdate is not null) T600425*
    where  ( T600425.pdate < 11/22/2010 )
    *) D1*
    ) D1
    ) D1 ) and '11/25/2010')
    group by T601002.currency
    ) D1
    I executed the query against my database(sybase) in query tool. It showed error.
    I took out the column alias generated by the OBIEE ("as c1" as underlined). Then the query is working fine.
    How to disable OBIEE from generating the alias.
    Is there any way to do it.
    If obiee is generating the physical query, i am suprised to see a syntax error.
    The bold part is the query from Intermediate report
    I underlined the problematic part.
    Please help me. This is an urgent reuirement,
    Thanks in advance for the help.

    HI,
    When I execute the query on query tool ( my database is sybase)
    I am geting error at "as c1" part, as underlined in the query.
    when I remove that and execute the query, It is generating the output.
    here is the better view of query and error:
    http://img255.imageshack.us/img255/4719/25187227.jpg

  • Advanced Filter Behaves differently in Full screen mode

    I have a power view report designed and published in SharePoint 2013. It has a filter on a text field -
    I can filter it with filter conditions "contains" in regular view mode. But this same field is not editable in "Full Screen Mode". The Numeric filters work fine in "Full screen mode"
    Is there any recommendations to fix this?
    Thanks

    Hi rskr,
    According to your description, you find the advanced filter in Power View is not working in Full screen mode. Right?
    Unfortunately, this is a known and documented limitation of Silverlight, which does not support keyboard input in full screen mode. Please refer to a Microsoft feedback below:
    PowerView advanced filter mode doesn't work in Full Screen Mode
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Advanced Filter on Custom B.O. OWL

    Hello again,
    I was wondering how you make an advanced filter like the one in the screenshot below.
    I didn't make this filter, it was standard in the C4C system.
    Is it in any way possible to create something like this for the OWL of a custom B.O.?
    Thanks!
    Regards,
    Glenn

    Hello Glenn,
    May be this can help you How to create an Advanced Filter in Custom OWL screen
    Thanks & Regards,
    Meghna

  • Prime 2.0 cannot save advanced filter

    Hello,
    We recently upgraded to PI 2.0 and we now cannot save our advanced filter slections.  If you go to operate - clients and users - show advanced filter, create a filter and save it.  I will filter the items but not save the filter in the pull down section like it used to in PI 1.3.
    Can anyone else confirm that this is happening to them?
    Dan.

    Hi Cedar,
    AFAIK , there is no way to import the OID template in the discovery settings. If it is  really a critical concern for you then you can discuss this will your accounts team to raise the Product Enhancement request for this feature.
    2.
    what you are doing right now by excluding the system OID of the devices like printer etc is the best way to handle this suituation though it is a tedious task
    Thanks-
    Afroz
    [Do rate the useful post]
    ****Ratings Encourages Contributors ****

  • Help with Test Server & Binding Recordset ASP-SQL

    Using CS 3.3/DW. Behavior is the same on two different
    machines. One is Vista Home Premium SP1 IIS 7 with 6 compatability,
    other is XP SP 3 IIS 5.1, both have IE 7 and full SQL 2005 with
    SP's.
    Haven't gotten very far away from static page yet, because I
    can't test. Have scoured forums and even talked to Adobe who
    recreated the problem then told me that they hadn't done sufficient
    testing to SQL 2005 prior to release, were supposed to call me
    back, did once, supposed to call back again and haven't (3 days).
    So I'm turning to the community for help, please.
    Set up test server in folder 'TServer' under
    C:\inetpub\wwwroot. Built a 'Hello World' ASP/VB Script page with
    no data attached, tests fine, puts in the appropriate folder and
    says "Hello World" in browser like a good little box should! Have
    built many DSN's, they tested during the building fine, I've tried
    various versions of ODBC and OLE DB, including but not limited to
    Native SQL Client, which is my preference and have been quite
    successful setting up the DSN's...they add to the ASP page/Site
    (it's greyed out unless you have an open ASP page) fine. Test at
    that point works fine. As soon as I bind a Recordset (whether I
    have dropped data on the page or not...same 'Hello World' page with
    Recordset info near the top of the code) and test, I error out.
    Any thoughts? I'm sure you'll need more info...I've tried to
    put as much as I can for starters. Thanks in advance.
    Peter

    When you say that you error out, what error are you getting?
    Ken Ford
    Adobe Community Expert - Dreamweaver/ColdFusion
    Fordwebs, LLC
    http://www.fordwebs.com
    "Peter AZ" <[email protected]> wrote in
    message news:g5qb7n$n30$[email protected]..
    > Using CS 3.3/DW. Behavior is the same on two different
    machines. One is Vista
    > Home Premium SP1 IIS 7 with 6 compatability, other is XP
    SP 3 IIS 5.1, both
    > have IE 7 and full SQL 2005 with SP's.
    >
    > Haven't gotten very far away from static page yet,
    because I can't test. Have
    > scoured forums and even talked to Adobe who recreated
    the problem then told me
    > that they hadn't done sufficient testing to SQL 2005
    prior to release, were
    > supposed to call me back, did once, supposed to call
    back again and haven't (3
    > days). So I'm turning to the community for help, please.
    >
    > Set up test server in folder 'TServer' under
    C:\inetpub\wwwroot. Built a
    > 'Hello World' ASP/VB Script page with no data attached,
    tests fine, puts in the
    > appropriate folder and says "Hello World" in browser
    like a good little box
    > should! Have built many DSN's, they tested during the
    building fine, I've tried
    > various versions of ODBC and OLE DB, including but not
    limited to Native SQL
    > Client, which is my preference and have been quite
    successful setting up the
    > DSN's...they add to the ASP page/Site (it's greyed out
    unless you have an open
    > ASP page) fine. Test at that point works fine. As soon
    as I bind a Recordset
    > (whether I have dropped data on the page or not...same
    'Hello World' page with
    > Recordset info near the top of the code) and test, I
    error out.
    >
    > Any thoughts? I'm sure you'll need more info...I've
    tried to put as much as I
    > can for starters. Thanks in advance.
    >
    > Peter
    >
    >

  • Filter Recordset

    Using MS SQL and ASP VBScript. I have a table called
    PRODUCTS, in this table there is a field called CATEGORIES. now the
    CATEGORIES field contains comma separated values representing each
    category it belongs to ie: 2,5,10,12. So in this example there are
    4 categories this product belongs to. Now I need to filter a
    recordset by category based on a single variable.
    So if I click my link: mypage.asp?CatID=2, it should return
    all the records that have 2 in the CATEGORIES field.
    I tried using the % wildcard but it would return 2, 12, 20,
    basically anything with a 2 in it which is not what I am looking
    for.
    SELECT *
    FROM PRODUCTS
    WHERE CategoryID .......This is where I can't get it working.
    any suggestions?

    bump

  • Filter Recordset by a Variable - HELP!!

    I'm using ASP/VBSCRIPT with an Access database.
    I have a variable that contains multiple email address, for
    example
    Dim Var1
    Var1 = [email protected], [email protected],
    [email protected]
    How do I filter a recordset using that variable. How do I
    retrive the records on the database that contain those email
    address.
    Any one has an asnwer?
    Please advise. Thanks!

    Will you always know how many variables there are, or will
    the number be
    dependent on user action?
    I'm thinking you should probably have an array, and work
    through it to get a
    list of variables, the present those to your SQL statement in
    an
    IF Email == Var1 OR Email = Var2 OR
    But I'm not sure how you'll do it if you have a number of
    variables you
    don't know?
    I'll check back in a bit if no solutions have been offered.
    "FLEQUE" <[email protected]> wrote in
    message
    news:eeu92f$8r2$[email protected]..
    > I'm using ASP/VBSCRIPT with an Access database.
    >
    > I have a variable that contains multiple email address,
    for example
    >
    > Dim Var1
    > Var1 = [email protected], [email protected],
    [email protected]
    >
    > How do I filter a recordset using that variable. How do
    I retrive the
    > records
    > on the database that contain those email address.
    >
    > Please advise. Thanks!
    >

  • How to define source value for filtered recordset (ASP)

    Hi,
    I'm using ASP & CS4. I have a search page which upon submission sends form parameters to a results page. The results page matches the search parameters to a recordset and returns the appropriate record/s.
    How can I take one of the values from the returned filtered recordset (which wasn't one of the original variables/parameters), and use it as a value to filter another recordset from another table? Do I have to create a parameter from that value, or can it be done in a SQL statement?
    Many thanks

    How many results are returned from the first recordset? Where is the second recordset to be displayed?
    If the first RS returns a single row and the second RS is displayed on the same page, you don't need to create anything. Just use the value of the column you want in the SQL statement. If you need to pass the value to another page, you can either set a session variable or pass the value in the querystring.

  • Filter recordset with session variable

    This has never happened to me before, but for some reason, my
    recordset that drives a dynamic table won't filter results based on
    a session variable. I know session variables are working because I
    have the session variable echo on the page (dragged-n-dropped my
    session variable from the Bindings panel to my page), and that
    works fine. So why can't I filter my recordset with the same
    session variable??? What's going on?
    PS: I've attached my result page's code to this
    message.

    Gabe the Animator wrote:
    > <?php require_once('Connections/sales.php'); ?>
    > <?php
    > if (!function_exists("GetSQLValueString")) {
    > function GetSQLValueString($theValue, $theType,
    $theDefinedValue = "",
    > $theNotDefinedValue = "")
    > {
    > $theValue = get_magic_quotes_gpc() ?
    stripslashes($theValue) : $theValue;
    >
    > $theValue = function_exists("mysql_real_escape_string")
    > mysql_real_escape_string($theValue) :
    mysql_escape_string($theValue);
    >
    > switch ($theType) {
    > case "text":
    > $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    > break;
    > case "long":
    > case "int":
    > $theValue = ($theValue != "") ? intval($theValue) :
    "NULL";
    > break;
    > case "double":
    > $theValue = ($theValue != "") ? "'" .
    doubleval($theValue) . "'" :
    > "NULL";
    > break;
    > case "date":
    > $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    > break;
    > case "defined":
    > $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
    > break;
    > }
    > return $theValue;
    > }
    > }
    >
    > $colname_rsSales = "-1";
    > if (isset($_SESSION['state'])) {
    > $colname_rsSales = $_SESSION['state'];
    > }
    > mysql_select_db($database_sales, $sales);
    > $query_rsSales = sprintf("SELECT * FROM sales WHERE city
    = %s",
    > GetSQLValueString($colname_rsSales, "text"));
    > $rsSales = mysql_query($query_rsSales, $sales) or
    die(mysql_error());
    > $row_rsSales = mysql_fetch_assoc($rsSales);
    > $totalRows_rsSales = mysql_num_rows($rsSales);
    >
    > session_start(); ?>
    The issue is that PHP doesn't "work" with session values
    until the session has started, and that must be done on each page,
    and must be done in the code *above* any reference to a session
    variable. The code you posted has the session_start() after it
    tries to use the session value ito filter the recordset. So move
    this last line of code ( session_start(); ) above $colnam_rsSales =
    "-1". Better yet, use:
    if(!session_id()){
    session_start();
    To prevent some versions of PHP from generating a
    warning/notice if you've called session_start() on the page already
    and you call it again.
    Danilo Celic
    | Extending Knowledge Daily :
    http://CommunityMX.com/
    | Adobe Community Expert

  • How do i filter recordsets using session variable???  Please help this is driving me mad...!!

    I am having the same problem as user "Gabe the animator" in a post sent in 2007.
    "my recordset that drives a dynamic table won't filter results based on a session variable. I know session variables are working because I have the session variable echo on the page (dragged-n-dropped my session variable from the Bindings panel to my page), and that works fine. So why can't I filter my recordset with the same session variable???"
    here is the code:
    <?php require_once('Connections/mockconn.php'); ?>
    <?php
    session_start();
    ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    if(!session_id()){
    session_start();
    $colname_info = "-1";
    if (isset($_SESSION['email'])) {
      $colname_info = $_SESSION['email'];
    mysql_select_db($database_mockconn, $mockconn);
    $query_info = sprintf("SELECT name, last_name, email, password FROM registration WHERE email = %s", GetSQLValueString($colname_info, "text"));
    $info = mysql_query($query_info, $mockconn) or die(mysql_error());
    $row_info = mysql_fetch_assoc($info);
    $totalRows_info = mysql_num_rows($info);
    ?>
    <!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>home</title>
    </head>
    <body>
    <div id="info">hello <?php echo $row_info['']; ?></div>
    <?php
    if (isset($_SESSION['email'])) {
              echo 'your email: '.' '. $_SESSION['email'] .' '.'good job';}
                        ?>
    </body>
    </html>
    PLEASE PLEASE HELP.... I have been at this for day's...
    how do I get the record set to filter based on the value of the session variable

    Sorry I forgot to mension the error I am getting?
    ( ! ) Notice: Undefined index: in C:\wamp\www\mock\home.php on line 59
    Call Stack
    Time
    Memory
    Function
    Location
    1
    0.0093
    389024
    {main}( )
    ..\home.php:0
    Why is this error coming up?

  • Filter recordset with results of another?

    Can you filter a recordset with the results of a field from a
    proceeding recordset in PHP?

    Manually setup a variable in between your recordsets in your
    head.
    $var = $row_firstRecordset['Fieldname'];
    Second recordset, just use your $var name to filter.
    HTH,
    Jon
    "tccdover" <[email protected]> wrote in
    message
    news:eaoha0$pcb$[email protected]..
    > Can you filter a recordset with the results of a field
    from a proceeding
    > recordset in PHP?

  • Filter recordset between dates

    Hi all...
    I'm trying to filter a recordset on two dates using 'between' in my sql
    I'm getting nowhere with it.
    I'm using Dreamweaver 8.2 and access database.
    Here is my code:
    <%
    Dim RSReport1__param1
    RSReport1__param1 = "01-01-2000"
    If (Request("reportfrom") <> "") Then
      RSReport1__param1 = Request("reportfrom")
    End If
    %>
    <%
    Dim RSReport1__param2
    RSReport1__param2 = "01-01-2000"
    If (Request("reportto") <> "") Then
      RSReport1__param2 = Request("reportto")
    End If
    %>
    <%
    Dim RSReport1
    Dim RSReport1_cmd
    Dim RSReport1_numRows
    Set RSReport1_cmd = Server.CreateObject ("ADODB.Command")
    RSReport1_cmd.ActiveConnection = MM_myconn_STRING
    RSReport1_cmd.CommandText = "SELECT Count(Actions.ActionID) AS CountOfActionID, Actions.Department, ActionSource.SourceOfAction FROM ActionSource INNER JOIN (Actions INNER JOIN Department ON Actions.Department = Department.Department) ON ActionSource.SourceOfAction = Actions.SourceOfAction WHERE (((Actions.Date_Raised) Between #?# And #?#)) GROUP BY Actions.Department, ActionSource.SourceOfAction ORDER BY Actions.Department;"
    RSReport1_cmd.Prepared = true
    RSReport1_cmd.Parameters.Append RSReport1_cmd.CreateParameter("param1", 135, 1, -1, RSReport1__param1) ' adDBTimeStamp
    RSReport1_cmd.Parameters.Append RSReport1_cmd.CreateParameter("param2", 135, 1, -1, RSReport1__param2) ' adDBTimeStamp
    Set RSReport1 = RSReport1_cmd.Execute
    RSReport1_numRows = 0
    %>
    No matter what i do, i just can't get the recordset to work.
    Any ideas before i pull my teeth out???
    I've also tried
    <%
    Dim RSReport1__param1
    RSReport1__param1 = "01-01-2000"
    If (Request("reportfrom") <> "") Then
      RSReport1__param1 = Request("reportfrom")
    End If
    %>
    <%
    Dim RSReport1__param2
    RSReport1__param2 = "01-01-2000"
    If (Request("reportto") <> "") Then
      RSReport1__param2 = Request("reportto")
    End If
    %>
    <%
    Dim RSReport1
    Dim RSReport1_cmd
    Dim RSReport1_numRows
    Set RSReport1_cmd = Server.CreateObject ("ADODB.Command")
    RSReport1_cmd.ActiveConnection = MM_myconn_STRING
    RSReport1_cmd.CommandText = "SELECT Count(Actions.ActionID) AS CountOfActionID, Actions.Department, ActionSource.SourceOfAction FROM ActionSource INNER JOIN (Actions INNER JOIN Department ON Actions.Department = Department.Department) ON ActionSource.SourceOfAction = Actions.SourceOfAction WHERE (((Actions.Date_Raised) Between ? And ?)) GROUP BY Actions.Department, ActionSource.SourceOfAction ORDER BY Actions.Department;"
    RSReport1_cmd.Prepared = true
    RSReport1_cmd.Parameters.Append RSReport1_cmd.CreateParameter("param1", 135, 1, -1, RSReport1__param1) ' adDBTimeStamp
    RSReport1_cmd.Parameters.Append RSReport1_cmd.CreateParameter("param2", 135, 1, -1, RSReport1__param2) ' adDBTimeStamp
    Set RSReport1 = RSReport1_cmd.Execute
    RSReport1_numRows = 0
    %>
    But get this error:
    Datatype mismatch in criteria expression
    Help Please!!!
    Andy

    Thanks bregent
    I changed the type to 133 and the code is working now.
    I still get the error in the Dreamweaver dialog box when i test the recordset, but the code works...
    Thanks again
    Andy

  • "An unidentified error has occurred" when testing a recordset, asp, vbscript, cs4, with dsn or custm

    Hi,
    I have created a dsn and a connection string that test fine on my web host (crystaltech), but I get an unidentified error when I test them on DW CS4. Any thoughts?
    This is my connection string:
    "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=D:\inetpub\bnicrossroadsconnections\dbs\members.mdb;"
    which generates this code:
    <%
    ' FileName="Connection_ado_conn_string.htm"
    ' Type="ADO"
    ' DesigntimeType="ADO"
    ' HTTP="true"
    ' Catalog=""
    ' Schema=""
    Dim MM_testConn_STRING
    MM_testConn_STRING = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=D:\inetpub\bnicrossroadsconnections\dbs\members.mdb;"
    %>
    The connection include code is here: http://bnicrossroadsconnections.com/connections/testconn.asp
    My dsn code is:
    <%
    ' FileName="Connection_odbc_conn_dsn.htm"
    ' Type="ADO"
    ' DesigntimeType="ADO"
    ' HTTP="true"
    ' Catalog=""
    ' Schema=""
    Dim MM_memberconn_STRING
    MM_memberconn_STRING = "dsn=memberdsn;uid=bnixroads;pwd=pass;"
    %>
    The dsn include code is here: http://bnicrossroadsconnections.com/connections/memberconn.asp
    What am I doing wrong?
    This is on a Windows server and I have set the file permissions to the dbs folder to allow writes and deletes.
    I tried moving a db and dsn from another site, where they work, and I get the same unidentified error on this site. I'm thinking I may have missed something with the host, but don't know what. Crystaltech says everything looks fine at their end, and IE throws no error messages.
    Many thanks!!!

    Thank you.  I closed all firewalls and tried it but got the same error.  Then I tried rebooting  and restarting DW to no avail.  So, I started clicking on the commands and on the site>advanced there is a Remove Connection Script command.  I clicked that and retried creating the dynamic table and much to my surprise it worked.  I think perhaps that it was a combination of your suggestion and getting rid of the old script that left it work.  Thanks again for your help.
    Best regards,
    Clair

  • How to filter recordset after execute?

    I hope this is an easy one.
    Lets say that I have a recordset like:
    Dim compRS
    Dim compRS_cmd
    Dim compRS_numRows
    Set compRS_cmd = Server.CreateObject ("ADODB.Command")
    compRS_cmd.ActiveConnection = myConn
    compRS_cmd.CommandText = "SELECT * FROM myTable WHERE myCol
    like ?"
    compRS_cmd.Prepared = true
    compRS_cmd.Parameters.Append
    compRS_cmd.CreateParameter("param1", 200, 1, 255, myParam) '
    adVarChar
    Set compRS = compRS_cmd.Execute
    compRS_numRows = 0
    I wish to be able to filter the rows, loop through the
    results and delete the filter more than once.
    I was always using ADO filter like myRS.Filter = "myCol like
    'something'" but it is not working now as the way that DW creates a
    recordset has changed.
    Thanks

    Hi,
    Thanks for your reply.
    I don't really know how to do it.
    Please explain me how to do it.
    Thanks,
    Marco

Maybe you are looking for

  • Unable to log in to Shared Photo Streams

    I downloaded Apple TV 5.1 last night to try using shared photo streams.  The update processed fine. When I went to photo stream it won't connect, I just get a message that the server is unavailable.  I haven't tried anything else on the Apple TV afte

  • What is a good paint/drawing app?

    In a recent news release fromApple, they mentioned a fellow doing a cover for the New Yorker magazine. Does anyone know what paint/draw App he used for this? j.v. fromnc

  • Pooling Prepared Statement and Resultset

    Is their any mechanism in Weblogic by which we can pool prepared statements and resultset.

  • IChat to support Hotmail?

    Hi, Just wanted to put my suggestion to everyone. Hope to be around here more. Microsoft messenger 7 and 6 is really poor! It makes the Keyboard crash, constantly exits sometimes and doesn't even support Video calls. Will iChat ever support Hotmail (

  • E Mac Upgrade fiasco

    Last night, Software Update suggested updating my 1Ghz eMac with 768RAM running OS X 10.4.11 for Quicktime and a new security update. After running the update, the computer will not start up. Sometimes it hangs on the blue screen. Sometimes the start