A continuous subform, how do i refer to a specific record

Hi,
I have a form which displays one client at a time.  Inside that i have a subform that shows every phone call ever logged for that client along with the date and time the call was made, sorted with the oldest at the top.
Assume main form called fClient, subform is called sCalls, date and time field in sCalls is called sTime.
From within the fClient's VBA module, how can i refer to:
1: the date/time of the last call to that client
2: the date/time of the call previous to the last call
Thanks, Gordon

You can do it very easily with a query, e.g.
SELECT TOP 2 CallDateTime
FROM Calls
WHERE ClientID = Forms!fClient!ClientID
ORDER BY CallDateTime DESC;
In code you can establish a recordset based on the above, though be sure to concatenate the ClientID value into the string expression rather than referencing the control as a parameter.  You can then return the values from the two rows in the recordset.
Ken Sheridan, Stafford, England

Similar Messages

  • How to random write in to specific record in datalog file

    lab view

    patibandla wrote:
    please go through Examples avilabe in the Help Menu.
    Help<< Find Examples..
    Forums is for new issues not for learing..
    see the attachment ex:
    Shame on you.  This forum is dedicated to learning.  What we don't (normally) do is provide ready-made code for people so people wander away from this forum with no better understanding of LabVIEW than when they came.
    Besides, probably the user was asking how to do a random access write to a datalog file.  Which I have no idea why you would do that - except to fudge data - which defeats the purpose of a log file - and could get you into legal trouble if the data is guaranteed to be untampered with.

  • How to Find/ScrollTo/GoTo a Specific Record in an MS Access Report?

    I have a database that contains software specifications from multiple documents.  The front end database has forms that allow users to associate higher level specifications (e.g. requirements or functional specs) with lower level specifications (functional
    specs or design specs).  The front end also has a comprehensive subreport embedded on a page of a form's tab control that shows the entire list of specification associations.  When users click on a specification in the report, it opens the appropriate
    form for editing the associations.  When the user closes the association form, the report is requeried to show the new information.  The problem is that the requery method sets the report back to the top instead of the page/record that the user clicked
    on.  Is there any way to find the original scroll position or record before click and then return the report back to that position/record?

    Yes, the Report object doesn't have a Refresh method.
    Not sure what you mean by this.
    If I open a report object in design view and create a code block I can use the DoCmd. then the letter R, the resulting list includes "RefreshRecord". It may be different when you add a Report to the Form the way you describe. I would
    not do that but rather would use a sub Form. If you have a query that you use as for the Reports Record Source, you could try running the Requery just on that rather than the Form.
    If not then maybe try using the Repaint Object.
    Just takes a click to give thanks for a helpful post or answer.
    Please vote “Helpful” or Mark as “Answer” as appropriate.
    Chris Ward
    Microsoft Community Contributor 2012

  • How to drill or navigate to specific records from a pie chart

    Hi,
    I have created a report that has a Pie chart view in it. What i want is that when i click on the chart it should navigate me to the specific records. E.g. I have a chart that shows %age of satisfied customers and %age of Not Satisfied Customers, what we are looking for is that when I click on satisfied customers's area, it should take me the satisfied customers records ony and same goes for Not Satisfied Customers.
    Can anyone help ?? I have tried the drilling option under charts properties, but that doesnt seem to be working.
    Thanks
    Ahmed

    Hi Martin,
    I haven't tried it, but can't you use a filter? Drag out a line from the data source and choose "filter" or drag a filter from the compose panel to the story board. Place the filter between data source and chart.
    Change the filter properties so that the specific value is filteres.
    Best Regards, Benni

  • How to generate a URL to specific record in OAF page?

    Hi,
    I need to generate URL to a specific page with populated record data.
    I've tried using FND_RUN_FUNCTION.get_run_function_url, but i don't know if this is a good method for OAF page.
    The page is opening but record is not populated.
    This package generates URL like /RF.jsp?function_id=?....
    The OAF pages have URLs like /OA.jsp?page=...
    Is there any way I can generate this URL?

    Hi
    Use this code to upload the file in the server and there by get the absolete path
    public void onActionUpload_File_in_Server(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionUpload_File_in_Server(ServerEvent)
        InputStream text=null;
        int temp=0;
        try
             File file = new File(wdContext.currentContextElement().getFileResource().getResourceName().toString());
             FileOutputStream op = new FileOutputStream(file);
             if(wdContext.currentContextElement().getFileResource()!=null)
                  text=wdContext.currentContextElement().getFileResource().read(false);
                  while((temp=text.read())!=-1)
                       op.write(temp);                                      
             op.flush();
             op.close();
             path = file.getAbsolutePath();
             wdComponentAPI.getMessageManager().reportSuccess(path);
        catch(Exception e)
             e.printStackTrace();
        //@@end
    Regards
    Chandran S

  • I'm installing windows 8 64 from iso dvd-I did the partition wiht BCamp 5 and I did the usb with compatibility software-once installation start from dvd, it ask me for some disk, usb or dvd drivers to continue. How I can continue the instalation?

    I'm installing windows 8 64 from iso dvd-I did the partition wiht BCamp 5.
    I did the usb drive with the compatibility software-once installation start from the dvd, it ask me for some disk, usb or dvd drivers to continue.
    How I can continue the instalation? How I can provide those driver to the instalation process?
    Thanks
    Manuel

    You can't get there with GUID/GPT.
    There are tips on making a USB flash device that is bootable.
    You can set aside a small 6GB partition somewhere and put Windows 7 installer there and run it WHILE IN Windows.
    Windows Vista can be upgraded in place to 7 RC.
    You'll need NTFS (30-50GB).
    Windows doesn't support FW for booting.
    You can create a drive that has Master Boot Record.

  • How can I refer to the PhotoShop Object library dynamically depend on the release of PhotoShop?

    Recently, I make a program, now I face a big program:
    I make the program by visual basic and photoshop script , but my client have different release of Photoshop, for example : photoshop 7.0 cs and cs2. I know every release of PhotoShop have ist own Object library, but in visual basic 6.0, I can only refer to one PhotoShop Object library. for example: if I refer to Photoshop 8.0 Object library, if my clients release of Photoshop is 7.0. there will be a error message : Run-time error '429 ( cant create object) Run-time error '430(Class does not support Automation or does not support expected interface), How can I refer to the PhotoShop Object library dynamically depend on the release of PhotoShop?
    my email is : [email protected] .
    any suggestion?

    Please read, and reply back here with information https://forums.adobe.com/thread/1499014
    -and try some steps such as changing browsers and turning off your firewall for downloads

  • How can I  refer an xml  Schema that was registred in Oracle xml DB

    How can I refer an xml Schema that was registred in Oracle xml DB, from other xml schema?
    I have the follow schema,:
    <?xml version="1.0" encoding="AL32UTF8"?>
    <xsd:schema targetNamespace="schemastipostasa.xsd"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xdb="http://xmlns.oracle.com/xdb/XDBSchema.xsd"
    elementFormDefault="unqualified" version="1.0"
    attributeFormDefault="unqualified">
    <xsd:simpleType name="codigosType" xdb:SQLType="NUMBER(4)">
    <xsd:restriction base="xsd:positiveInteger" >
    <xsd:totalDigits value="4" />
    </xsd:restriction>
    </xsd:simpleType >
    <xsd:simpleType name="integerUnoType" xdb:SQLType="NUMBER(1)">
    <xsd:restriction base="xsd:int" >
    <xsd:totalDigits value="1" />
    </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="condicionType" xdb:SQLType="VARCHAR2(1)">
    <xsd:restriction base="xsd:string">
    <xsd:enumeration value="S" >
    <xsd:annotation>
    <xsd:documentation>Condicion si es S</xsd:documentation>
    </xsd:annotation>
    </xsd:enumeration>
    <xsd:enumeration value="N" >
    <xsd:annotation>
    <xsd:documentation>Condicion no es N</xsd:documentation>
    </xsd:annotation>
    </xsd:enumeration>
    </xsd:restriction>
    </xsd:simpleType >
    </xsd:schema>
    I registred the schema written above with the folowwing pl*sql :
    DECLARE
    direc varchar2(2000);
    nombreArch BFILE;
    mens varchar2(2000);
    BEGIN
    direc:=uso_comun.pack_mail.fun_valor_param('TASA','DIR_DBSERVER');
    nombreArch:=bfilename(direc,'schemas_tipos_tasa.xsd');
    DBMS_XMLSCHEMA.registerSchema(
    SCHEMAURL => 'http://xmlns.oracle.com/tasa/schemas.tipos.tasa.xsd',
    SCHEMADOC => nombreArch,
    LOCAL => TRUE,
    CSID => nls_charset_id('AL32UTF8'));
    dbms_lob.CLOSE(nombreArch);
    dbms_output.put_line('salio sin cancelar');
    exception
    when others then
    mens:=sqlerrm;
    dbms_lob.CLOSE(nombreArch);
    rollback;
    raise_application_error (-20001,'en registro shcema='||mens);
    END;
    Then, I want to register the following schema, that mention de schema above:
    <?xml version="1.0" encoding="AL32UTF8"?>
    <xsd:schema targetNamespace="schema.repuesto.xsd"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xdb="http://xmlns.oracle.com/xdb/XDBSchema.xsd"
    xmlns:tns="http://xmlns.oracle.com/tasa/schemas.tipos.tasa.xsd"
    elementFormDefault="qualified" version="1.0"
    attributeFormDefault="unqualified" >
    <xsd:element name="PRECIORENG" type="preciorepType" />
    <xsd:complexType name="preciorepType" >
    <xsd:sequence minOccurs="1" maxOccurs="unbounded">
    <xsd:element name="CODIGO_MARCA" type="tns:codigosType" />
    <xsd:element name="ORIGEN_PRECIO" type="tns:integerUnoType" />
    <xsd:element name="INGRESO_POR_FALTANTE" type="tns:condicionType" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    But when a run the following script whith the same db-user:
    DECLARE
    direc varchar2(2000);
    nombreArch BFILE;
    mens varchar2(2000);
    BEGIN
    direc:=uso_comun.pack_mail.fun_valor_param('TASA','DIR_DBSERVER');
    -- nombreArch:=bfilename(direc,'prueba_schema_seis.xsd');
    nombreArch:=bfilename(direc,'Schema_repuesto_nuevo.xsd');
    DBMS_XMLSCHEMA.registerSchema(
    SCHEMAURL =>'http://xmlns.oracle.com/tasa/schema.repuesto.xsd',
    SCHEMADOC => nombreArch,
    LOCAL => TRUE,
    CSID => nls_charset_id('AL32UTF8'));
    dbms_lob.CLOSE(nombreArch);
    dbms_output.put_line('salio sin cancelar');
    --commit;
    exception
    when others then
    mens:=sqlerrm;
    dbms_lob.CLOSE(nombreArch);
    rollback;
    raise_application_error (-20001,'en registro shcema='||mens);
    END;
    tell me the error: ORA: 01031, insufficient privileges!!!!, what’s wrong??,

    Hi,
    To register schema, you require XDBADMIN system privilege granted to the user.
    Please verify this and retry.
    Rgds,
    Rakesh Tripathi

  • How can i refer to the parent window of the window containing an applet ?

    Hi all,
    I m stuck up with something. I have a web page say 'page1' which has a link that opens up a popup window. This popup say 'page2' window has an applet. On clicking particular pins on the applet i need to
    direct page1 to another URL & close the popup window. i hv tried this code.
    URL url = new URL(applet.getCodeBase(), path);
    AppletContext appletcontext = applet.getAppletContext();
    appletcontext.showDocument(url, "content");
    JSObject win = JSObject.getWindow(applet);
    win.eval("alert(\"Do u wnat to close!\");");
    win.eval("window.close()");
    This code opens up another window on click of the pin, & shows an alert before closing the popup window. On using
    appletcontext.showDocument(url, "_parent"); or
    appletcontext.showDocument(url, "_top");
    The window containing applet gets refreshed with the URL but not page1.
    How can i refer so to page1 from the applet.

    You don't show your code for what parent or top are, but in an
    applet, you must stick with relative links. Once you have the
    appletcontext, use a relative path from there:
    In the snippet below, docName is a relative path, i.e. ../up/above
       * Displays the specified document in the Web browser.
       * @param docName String pathname of document to download from Webserver
       * @return void
      private void fetchDocument(String docName) {
         AppletContext ctx = getAppletContext();
         java.net.URL serverURL = getDocumentBase();
         java.net.URL codeURL   = getCodeBase();
         java.net.URL docURL = null;
         try {
            docURL = new java.net.URL(codeURL, docName);
         catch (java.net.MalformedURLException err) {
            System.out.println("unable to compute URL from (" + serverURL + ", " +
                               docName + ")");
         if(this.bDebug)
           System.out.println("Open document: " + docURL.toString());
         ctx.showDocument(docURL);
      }

  • How to you refer to a function in another function in a cfc

    HI,
    How to you refer to a function in another function in a cfc like so
    <cffunction name="getApplicationConstants" access="remote" returntype="struct">
             <cfset flash.result.users = [the result from the getUsers function]>
        <cfreturn flash.result>
    </cffunction>
    <cffunction name="getUsers" access="remote" returntype="query">
            <cfquery name="q" datasource="#datasource#">
                select     c.*
                from    USERS as c    WHERE looksLikeUserIsDeleted = 'False'
                AND userPrivileges = 1
                ORDER BY fullName
            </cfquery>
            <cfset flash.result = q>
            <cfreturn flash.result>
    </cffunction>

    Hi, Nikos,
    If the CFCs are in the same directory, you could do the following:
    CFCA
    <cfcomponent>
    <cffunction name="getApplicationConstants" access="remote" returntype="struct">
        <cfset flash.result.users = cfcB.getUsers() />
        <cfreturn flash.result>
    </cffunction>
    </cfcomponent> 
    CFCB
    <cfcomponent>
    <cffunction name="getUsers" access="remote" returntype="query">   
            <cfquery name="q" datasource="#datasource#">
                select     c.*
                from    USERS as c    WHERE looksLikeUserIsDeleted = 'False'
                AND userPrivileges = 1
                ORDER BY fullName       
            </cfquery>
            <cfset flash.result = q>
            <cfreturn flash.result>
    </cffunction>
    <cfcomponent>
    If the CFCs were in different directories, the cfset expression in CFCA would be this:
    <cfset flash.result.users = path.to.cfc.cfcB.getUsers() />
    Where I have path.to.cfc, you would use either a mapping from CF Admin or the hierarchy of folders to the CFC from the web root.
    Does that help?

  • How do I refer someone to sky

    Hi, how do I refer people to sky and get a reward for it. Can't find a link to it on my account. Thanks,Alan

    "Introduce a friend" link in your My Sky should be what you're looking for

  • My music goes to iCloud and I don't want to use my data to download it continuously. How do I keep it on my device and out of iCloud?

    My music goes to iCloud and I don't want to use my data to download it continuously. How do I keep it on my device and out of iCloud?

    Donnakelley62 wrote:
    I don't know. And no I don't use iTunes match.
    WE are travelling and it seems every time I want to listen to music it's on iCloud and not my device. I find a wifi connection and download the songs them bam next time they are back on iCloud!
    iTunes purchases are always on iCloud. They don't get uploaded there. They are simply there because you purchased them.
    When you first purchqse, iTunes (computer or phone) should download them. If they are not downloaded, you will see the cloud icon.

  • How to set up the client-specific consolidation routes

    Hi!
    I am setting up TMS-functionality in my 2-system landscape (DEV, PRD) and would like to use 2 Clients in the DEV-system (100> Cust and 200> Test).
    <b>How can I set up the tranport routes between the Clients 100 and 200 in the same system DEV?</b>
    I read, the client-specific consolidation route should be applied in this case?!
    (also some parameter settings should be edited, e.g. CTC)
    <b>Can some one give me a detail technical description how to set up the client-specific consolidation routes between Client 100 and 200 in DEV-system?</b>
    Thank you!
    regards

    Hi Axel,
    You have activate Extended transport route.
    refer this link to helpout for the same
    http://help.sap.com/saphelp_47x200/helpdata/en/2e/709533ef9b11d184850000e8a57770/frameset.htm
    Reward points if helpful.
    Regards
    Ganesh

  • How can v recover the specific record while loading

    Hi Guys,,
    suppose i am loading the data n few record suppose sales order 100001-100005r not loaded.
    is der any possiblity to recover only the error records.
    pls reply
    Regards
    KK

    Hi,
    You can load specific records based on some selection criteria using a Full repair load.
    First identify the records. Fill the set up tables. then do a full repair.
    Refer
    http://sapbwneelam.blogspot.com/2007/09/how-to-do-delta-loads-after-full-loads.html
    thanks,
    JituK

  • How can I setup a mail-specific passcode/restriction on iPad used by multiple family members?

    How can I setup a mail-specific passcode/restriction on iPad used by multiple family members?
    Have an Exchange mail account setup and accessible in my mail on iPad... however my kids use it and i would like to restrict them from accessing this specific portion of the device.  I tried viewing restriction options and do not see that i can apply a restriction specifically to Mail.  Thanks for your help.

    Not a feature of iOS. Check the AppStore to see if there are other
    mail apps that allow passcode protection.
    Or use Safari to log onto your email via a web-based interface and
    enter your credentials each time. A bit slower, but the kids will
    not know the details to login.

Maybe you are looking for