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

Similar Messages

  • 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
    %>

  • 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

  • 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
    %>

  • Dreamweaver 8 access database connection

    I have installed dreamweaver 8 on a local server running IIS
    2
    I am trying to connect to an access database also located on
    the local sever
    all connections appear to work and you can see the live data
    that is in the database, but when I try to preview the page
    or view from a diffrent machine. It displays a page not found
    error
    I think this may be related to the testing server, I am not
    sure
    I am running windows server 2003 and creating a .asp files
    file and have configured the testing server as local
    any ideas or is there a better way to sync my database to
    dreamweaver
    thanks
    [email protected]

    It's obviously your connection to your db. Have you created a
    DSN (via
    Control Panel) or a connection string?
    If you've created a DSN, which I suspect, try editing your
    connection from
    the Database panel, and chosoe Use DNS on Testing Server. The
    reason it may
    not work on another machine is your connection uses a DSN,
    but of course the
    DSN hasn't been created on the other machine. This would be
    the same for any
    other machines.
    You may prefer to use a connection string instead. Should
    look something
    like this (modify path and file name):
    "Driver={Microsoft Access Driver
    (*.mdb)};DBQ=C:\Folder\mydatabase.mdb"
    Let me know if you need more on this,
    Piers

  • 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

  • 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

  • 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.

  • 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?

  • Vista SP2 and Access connections requiring manual reconnect

    Hi,
    I'm experiencing a problem after the installation of Windows Vista SP2 on my Vista Business. After a reboot, I must always manually 1) disconnect the WLAN connection and then 2) reconnect to establish a working WLAN connection and to gain access to Internet. Before I disconnect, the WLAN connection is alive, but I cannot access any websites. Everything worked just fine before installation of SP2.
    I'm running Access connections version 4.42 on Thinkpad R61. I've read that someone has had a similar problem with wired LAN and with newer version of Access connections: http://social.technet.microsoft.com/Forums/en/itprovistasp/thread/17ba267e-0bb1-4621-b81f-04afa0d806...
    Does someone know how to solve this issue and make the connection to work without a manual disconnect -> reconnect step?
    BR,
    Miika

    After some searching, I found a working solution:
    http://www.darthcontinent.com/2009/05/no-internet-after-installing-vista.html
    Everything works fine now.

  • Problem with applications and accessing database

    Hi
    I have a serious problem with my applications.I was trying to change "users"'s folder icon so I changed the setting in information.I don'y know what I did but It made these problems:
    many of applications does not open for example
    itunes-->The folder "iTunes" is on a locked disk or you do not have permission...
    picasa alerts me with a database error
    yahoo messenger just pops up once and doesn't open.
    firefox the same problem
    net monitor alerts with a database problem.
    evernote same problem
    all of my address book is erased.
    I think somehow I removed the db files or I changed the permission and the programs can not access to their db files.

    don't know the last thing I have done was trying to change the icon and after that I found out about the problem.Maybe sth else caused the problem . anyway I copied all of my files to a new user and I removed the user with problems & everything is ok here.thank u all.

  • Filtering results based on dynamic date in coldfusion and access database

    Hello Guys, i am using a cfquery and am trying to return results based on date. the idea is to return entries that are less than or equal to date but am not getting any results but when i change to greater than or equal to i get the all results in databse which is wrong.
    Below is my code. is there something am doing wrong? Please help.
    <cffunction name="getBal" access="remote">
    <cfargument name="ID_biodata" type="string" required="true">
            <cfargument name="quater" type="string" required="true"/>
            <cfargument name="datePaid" type="date" required="true"/>
            <cfquery name="qBal" datasource="bond100">
    SELECT ID_biodata, quater, datePaid, amountPaid, manFees
    FROM collections
    WHERE datePaid <= <cfqueryparam cfsqltype="cf_sql_timestamp" value="#parseDateTime(arguments.datePaid)#">
                AND ID_biodata = <cfqueryparam cfsqltype="cf_sql_varchar" value="#arguments.ID_biodata#">
                AND quater = <cfqueryparam cfsqltype="cf_sql_varchar" value="#arguments.quater#">
                ORDER BY datePaid
    </cfquery>
            <cfquery dbtype="query" name="results">
            SELECT SUM(CAST(amountPaid as INTEGER) + CAST(manFees as INTEGER)) AS totalPaid
                FROM qBal           
            </cfquery> 
            <cfreturn results />
        </cffunction>

    Turn on debugging so that you can see what ColdFusion is sending to your database server.
    The debug info will show the SQL statement with query parameter values below it.
    Cheers
    Eddie

  • Dreamweaver and Access Help

    Dont know if this is possible but. I need either the database
    table or three pages to diable from being able to update from 12
    midnight on wendsday and enable back on the following monday of
    each week.
    the clients log in to there respective information. and i
    cant have then updating the certain table from those hours.
    Thanks very much
    Ken Giuliani

    >i was just wondering if there is a line of code that can
    disable that page or database at that time and
    >then allow them to start entering again. after that time
    expired.
    Sure, although it would be more than a single line of code. I
    imagine that the pages that update the database already have some
    user authentication restrictions. Just check the current time and
    if it falls withing the range, restrict the access. A more flexible
    method would be to create a table that stored the update schedule.
    >or if there was something in access that you could set to
    disable a table from a certain time to another time.
    Possibly in later versions, but I wouldn't do it that way in
    any case.

  • 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...

Maybe you are looking for

  • My iphone is no longer showing up as an option in network connections

    I've been using my iphone's data to connect to the internet on my pc and my ipad for ages. The last few weeks, it kept dropping out and I had to turn personal hotspot off and on again to reconnect. Yesterday however, a new problem arose. I turn the h

  • Error in Operation Mapping for Idoc to File Scenario

    Hi Experts, I am doing Idoc to File Scenario for Timesheet IDoc "HRSM_C" and following step are through, Sender agreement --> Receiver Determination --> Interface Determination got stuck in Operation mapping, it sahows error "Unable to find resource

  • Contact Picture size when iPhone rings

    My wife's iPhone 3G displays a contact's picture differently than mine and we can't figure out why. When her phone rings from a contact where a picture is stored, the Wallpaper is displayed large in the middle and the contact's name and picture is di

  • HT5633 Wireless keyboard with Apple TV Box

    I had connect wireless keyboard with Apple TV Box it is work perfectly with English language but Thai language I need to hold the key until it appear then press Enter to type a letter it is look really trouble at all. Please give me any suggestions,

  • Set Padding Color

    Hi,      Is it possible to set color for padding . For example we are setting paddingTop=2 and we may get 2 pixel gap. Is it possible to fill the 2 pixel gap by color.If so please give me a sample. Regards, Jayagopal.