Really important...plz help

Dear Experts
I need your help
I need  a report in the following format:
Example for Wage type Basic pay for each grade
1.Opening balance
2.Additions due to hiring
3.changes due to grade change etc
4.Deletions due to person leaving
5.Closing balance
IT SHOULD GIVE AMOUNTS FOR EACH FIELD FOR A PARTICULAR WAGETYPE FOR EACH GRADE
Can someone please help me out
Your help will be really appreciated
Thanks in advance
Regards
Jayeeta

Hi vicky
Which report do i need to run
Also by opening balance i mean for Wage type Baic pay,what is the toatl amount for people belonging to a certain grade
Regards
Jayeeta

Similar Messages

  • I need help trying to figure out how to get deleted texts back from icloud storage. can someone help me its really important?

    really important. need help.

    If they were on your phone when it was last backed up, restoring the backup to your phone should recover them.

  • N95 problem, plz help

    How do i auto save my files that i receive from bluetooth to my file managers,
    it always go to my msg inbox. really anoyin,
    plz. help me.

    I'm using an i-tech usb BlueCON U2 (http://www.itechdynamic.com/en/products_spec.asp?cid=6&pid=06030)
    With the latest version of Bluesoleil that seems to work very well with Vista.
    Just access the phone, mine is an N95, through the pc and drag and drop the files you want moving anywhere you want, phone or memory card.
    by the way Robert, i've seen you blog on rotateme and was wondering if you could send me a signed copy?
    o2-uk, N95 8GB
    V20.0.016, 28-02-08, RM-320, (88.01)
    Running Rotate Me 2.2 & Rock'n'Scroll & Shake SMS & ShakeLock & Flip Silent

  • My friends put cydia on my ipod and other stuff from it like something who slide your apps differently how can i remove the both, plz help ..???

    My friend put cydia on my ipod and other stuff from it like something who slide your apps differently. How can I remove the both, I really want, plz help ...?

    They hacked it and may have caused damage to your device. Jailbreaking also voids your warranty and support from Apple. To restore to a clean state, restore in Recovery Mode: http://support.apple.com/kb/HT1808

  • HT204382 music files that I'm trying to transfer from my external hard drive!!! i really need help! i am getting very frustrated. plz help me thank you

    hi. i am trying to transfer my old pictures and music files from my external drive into my new laptop.and first of all only a coupleof my foldersare coming up.and even those few files/folders wont play ....i am new to mac.i REALLY need help. my old pictures and music are real important to me.plz help me.

    IS the external HD from another Mac or a PC?

  • I lost a really important file (an iText Express document) randomly and then one day, a "recovered file" folder popped up and I assume it has to do with that, but the file just contains a doc with a bunch of coding. What do I do with that? HELP!!!

    As the title question states, I lost a really important file with iText Express. I've been using iText Express for a year or two now because it's just the one application I downloaded for writing and saving documents. I was working on one for a few months and randomly one day last month, when I went to open it to resume editing my work, the file was gone! I searched my whole laptop and trash. Then one day, a "Recovered Files" folder popped up in the area my file used to be, so I assumed that was the file I lost being recovered and I felt relieved. But when I opened the folder, the document inside was a "SoftwareMap" document with a bunch of coding written in it. I don't understand what I'm supposed to do with that or how it's going to help me recover my file?!? I lost SO much work!!! If anyone has ANY idea what to do, how this happened, or if the coding is supposed to help me recover my file, PLEASE help!!!

    No, I already tried looking at that. The file that recovered was not in the trash, it appeared in my documents folder. I opened it up and inside was an iText Express document with coding. Then inside of there, was and then and this "SoftwareMap" document contained a bunch of coding and symbols and words.

  • HT1212 device disabled after entering wrong passcode. Please help me in getting this unlocked  without lossing the data as the data is really important for me

    device disabled after entering wrong passcode.
    Please help me in getting this unlocked  without lossing the data as the data is really important for me

    I think you should call via phone or perhaps take it to a phone store. I suggest taking your id, box packaging and other necessities such as the reciept of the phone being purchased.
    Hope this helped

  • Hi friends i have mac ibook g4 i know its a really old model but its perfectly fine it has installed mac os x 10.5.8 ok whenever i copy and paste any thing it says no free space weather i copy from folder to desktop or from usb to mac plz help plz

    hi friends i have mac ibook g4 i know its a really old model but its perfectly fine it has installed mac os x 10.5.8 ok whenever i copy and paste anything it says no free space weather i copy from folder to desktop or from usb to mac plz help plz

    There is no download for 10.4.x or 10.5.x, there is a very slim chance you can get 10.5 by calling Apple, but usually you can only get it on eBay & such.
    Tiger Requirements...
    To use Mac OS X 10.4 Tiger, your Macintosh needs:
        * A PowerPC G3, G4, or G5 processor
        * Built-in FireWire
        * At least 256 MB of RAM (I recommend 1GB minimum)
        * DVD drive (DVD-ROM), Combo (CD-RW/DVD-ROM) or SuperDrive (DVD-R) for installation
        * At least 3 GB of free disk space; 4 GB if you install the XCode 2 Developer Tools  (I recommend 20GB minimum)
    http://support.apple.com/kb/HT1514
    http://www.ebay.com/sch/i.html?_nkw=mac+os+x+tiger+retail+10.4
    See Tom's, (Texas Mac Man), great info on where/how to find/get Tiger...
    https://discussions.apple.com/message/15305521#15305521
    Or Ali Brown's great info on where/how to find/get Tiger...
    http://discussions.apple.com/thread.jspa?messageID=10381710#10381710
    Leopard requirements/10.5.x...
        *  Mac computer with an Intel, PowerPC G5, or PowerPC G4 (867MHz or faster) processor
    minimum system requirements
        * 512MB of memory (I say 1.5GB for PPC at least, 2-3GB minimum for IntelMacs)
        * DVD drive for installation
        * 9GB of available disk space (I say 30GB at least)
    Classic/OS9 Apps no longer supported.
    May be available from Apple again...
    https://discussions.apple.com/thread/4720126?tstart=0
    Trouble is Apple no longer sells it, check eBay & such for the Retail version, not the Gray Discs...
    http://www.ebay.com/sch/i.html?_nkw=mac+os+x+leopard+retail+10.5
    Now, for your Trash problem, see if this helps...
    Solving Trash Problems...
    http://thexlab.com/faqs/trash.html

  • Plz Help With This Important Decision

    I really need help deciding if i should run bootcamp or not. i have 33 gb left on my hd(i only started w/55.5 after formatting). i just cant decide. plz help!!!

    Remember also, you want to keep about 15% of your drive free, so virtual memory will work efficiently.
    -Bmer
    Mac Owners Support Group
    Join Us @ MacOSG.com
    ITMS: MacOSG Podcast
     An Apple User Group 

  • Listen, im REALLY frustrated, so, PLZ, PLZ, MPLZ, PLZ, PLZ, PLZ, PLZ, HELP!

    ok, long story short:
    i plugged my ipod into my comp.
    it beeped(never done that b4)
    it said it was, like, unreadable(i just clicked sync as mentioned below)
    i synced it
    not all my music went onto it(im not sure, but: it said that thing where there are ((some number)) of total problems, and, like, it cant sync them cuz it doesnt kno where the file is or somethin, but, my library says it has like, 872 songs, but my ipod says it has like, 769, so im not sure
    there are only 83 songs that dont have the little exclamation point
    (((((Oh, by the way, i kno that u can like, double-click them to choos the file, but, i cant, cuz, b4, i had to get my music from my ipod to the comp and i manually moved the music folder, so, in that folder, all there are are names like: YVVO, APRH, and stuff like that, so, i dont kno whats what, and i also dont kno how to get my music back, so, plz help me!)))))
    how do i get my music back?
    if u need more details to help me, just ask, ill tell u!
    Plz, plz, plz, plz, plz, plz, plz, plz, plz help me!!!!

    http://support.apple.com/kb/ht1808

  • Really Tricky problem ! Plz Help !!!

    In my application, i'm checking for the existence of particular id in the database. Where i'm checking it further for the existence of particular Project Against it(Each Record had 6 values of Project Id's linked to it.) The query i'm throwing is:-
    String strSql="Select * from empdaily where ";
         strSql=strSql + " eid='" + s1 + "' and " + "date='" + d1 + "'and (pid1='"+s2+"' or pid2='"+s2+"' or pid3='"+s2+"' or pid4='"+s2+"' or pid5='"+s2+"' or pid6='"+s2+"' ) " ;
    But the problem is..how to catch the particular pid..like whether it's pid1/pid/pid3....or so....since i've to display only that pid whose value is equal to s2.
    Plz help.

    Are you trying to determine the pid value that s2 equals or are you trying to determine the particular pid column that equals s2?
    If you want the pid value, then brumalis had it right. Namely just display s2, otherwise if you want the pid column e.g whether it was pid1, pid2 etc, then the best method that is generic is to use the union query approach, and place a static field in each query select statement e.g
    strsql = "SELECT *, 'pid1' FROM empdaily WHERE ";
    strsql = strsql + "eid=" + s1 + " And date=" + d1;
    strsql = strsql + " And pid1=" + s2
    strsql = strsql + "UNION SELECT *, 'pid2' FROM empdaily WHERE ";
    strsql = strsql + "eid=" + s1 + " And date=" + d1;
    strsql = strsql + " And pid2=" + s2
    strsql = .......................... and so on until pid6
    Obviously you'd change 'pid1' etc to something you require, such as a simple column index or something.
    Either way I agree there must be a better data structure than what you are using, like a child table with a pid and pidtype or something similar. And as for not wanting to change.... well odds are it'll come back to bite one day ;)

  • Very important post. plz help!!! video problems. cant find related posts.

    okay so i bought the new ipod video 30 gig, like a few days ago. i just bought two episodes of Lost from season 2, the first two episodes of the season. they play fine on my computer on itunes, they wont play on my ipod. this is what happens: i click on the episode, it pauses for 3 seconds and than a blue/purple screen comes up for like 6 seconds and than it goes back tothe menu with the two episodes.
    i also bought the new CD from Anti-Flag today as well from itunes, they play fine on itunes but on my ipod it skips from song to next song without playing it but when i plug it in my computer it says it played X number of times.
    plz help me.

    And no purchased content works?
    Try this...
    Part 1:
    1. Navigate to \iPod_Control\iTunes on the iPod in Windows Explorer. You may have to turn on Show Hidden Files and folders. To do this, go to Tools-->Folder Options, click the view tab, click the bubble to show hidden files and folders, click Apply, and click OK. Look for the presence there of a file named iEKInfo. Is it there? If so, make a copy of this onto your computer somewhere. While there, make a copy of iTunesDB also. Don't delete these copies.
    2. Create a new, administrator user in Windows . (Start-->control panel-->user accounts-->create a new account)
    3. Log out of the current user.
    4. Log into the new user.
    5. Restore the iPod as documented in this article:
    http://docs.info.apple.com/article.html?artnum=60983.
    6. Open iTunes.
    7. Set the Music sync preference in iTunes for the iPod to Manual mode.
    8. Download the free single of the week from the iTunes Music Store.
    9. Verify that the song plays in iTunes.
    10. Drag only this song to the iPod.
    11. Eject the iPod from iTunes.
    12. Disconnect the iPod from the computer.
    Does the song play?
    If the iPod is able to play this song, follow these steps:
    Part 2:
    1. Log out of the new user.
    2. Log back into the original (affected) user.
    3. Reconnect the iPod to the computer.
    4. Drag some of the older purchased content (that would not play before) to the iPod.
    5. Eject the iPod from iTunes.
    6. Disconnect the iPod from the computer.
    Does the affected content play?
    Is the iPod still having the same issue? Try these possible solutions:
    Part 3:
    * Delete the SC Info.sidb file as documented in http://docs.info.apple.com/article.html?artnum=302386.
    * If the issue persists, recreate the iTunes Music Library as described in http://docs.info.apple.com/article.html?artnum=93313.
    Does the music play?
    Please post back if this works or not.
    btabz

  • Plz. help,table does not show value for one field

    hi all,
    i have a really strange problem , i have a string field in access database that contains the date and time value,this field for some strange reason does not show in my table created through html,
    i tried all combination(arranging the fields) ,renaming it w/o help, it shows the value using out.println(but then why is it not showing me in the table???)
    plz. help ASAP.
    the code is as under
    <HTML>
    <HEAD><TITLE> LOGGED IN ok</TITLE> </HEAD>
    <BODY bgcolor = "yellow">
    <%@ page import = "java.sql.*" %>
         <%! // declaring variables
    String s = "";
    java.sql.ResultSet rs=null,rs1=null,rs2=null;
    java.sql.Connection con;
    java.sql.Statement stmt,stmt1;
    String empId = "",compid ="",calltype ="",probheader="",probdescription ="",probcomment ="",priority ="",a="";
    %>
    Following are the pending complaints ..
         <TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0 width="100%">
         <TR>
         <TD> ComplainD </TD>
    <TD> ComplainId </TD>     
    <TD> ProbHeader </TD>     
    <!--
    <TD> ProblemDescription </TD>     
    <TD> Problem Comments </TD>     
    -->
    </TR>
         <%
         try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};" +"DBQ=c:/vishal/HelpDesk.mdb;DriverID=22;READONLY=false","","");
         //java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:odbc:Portal");
              java.sql.Statement stmt = con.createStatement(java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE,java.sql.ResultSet.CONCUR_READ_ONLY);
              s = "select * from Complains";
         java.sql.ResultSet rs = stmt.executeQuery(s);               
                        while(rs.next())
                        //getting data from database
                                                           empId = rs.getString("EmpId");                    // out.print(" " + empId);
              compid = rs.getString("ComplainId");
              // out.print(" " + compid);
              calltype = rs.getString("CallType");
              // out.print(" " + calltype);
                        a = rs.getString("Complaindate"); //problem with this field
    out.print(a); // prints value
              %>               
                        <TR>      
                        <TD> <%=compid %> </TD>
                        <TD> <%=calltype %> </TD>     
                        <TD <%=a %> </TD>
                                       </TR>
    <%
                        }//while loop          
         %>
         </TABLE>     
         <%                
         }//try
              catch(Exception ep)
              out.println(ep);
              System.exit(1);
    %>
    </BODY>
    </HTML>
    value in database is as follows :-
    Complaindate
    5/18/2003 1:30:27 PM
    5/18/2003 7:32:43 PM
    5/18/2003 7:34:02 PM
    5/18/2003 7:49:19 PM
    5/18/2003 7:50:27 PM
    5/18/2003 10:49:42 PM
    5/18/2003 10:58:24 PM
    thanking u ,plz ask if any further clarifications

    Hi
    I am seeing nothing wrong with ur code..
    what about "view source" result.....plz check with that...
    whether u r getting all the trs and tds...
    revert back on this Issue..
    Mars Amutha

  • PLZ HELP.. How can i make dvd from FCP project..

    Can someone plz help..
    I have FCPPRHD and DVD Pro..
    I got lost trying to make a dvd out of fcp project
    Can someone plz help in easy 123.. steps how to make a dvd for my client to view..
    Thnx ever so much
    awaitng ur reply

    I don't want to sound too harsh, but you really need to read the manual and do the tutorials.
    You shoot, capture and edit in FCP. You export that to MPEG2 using compressor and you import the resulting video and audio files into DVDSP. You add a menu and set up buttons to get to the footage, and you set up navigation so that your client can get back to the menu at any time. You build and format that (i.e. burn the disc).
    That's the process, but it is very much more detailed than any of us could write here.... it's all in the manual and tutorials

  • Java Mail Project HELP Required....URGENT PLZ HELP!!!

    hello there!!
    i took up a pjct for my engineering on java mail..got the code..and i thought that ill analyse it...the code is submitting the mail to the smtp server but after dat its failing to deliver to the client..as i can see this error in the logs on SMTP server...can anyone help me out in analysing this code!!!
    plz help, exams are near...(am new to java)
    //java FINAL!
    import javax.swing.*;
    import java.net.URL;
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    public class EmailProg extends JPanel implements ActionListener {
    protected JTextArea textArea;
    protected String newline = "\n";
    static final private String composemail = "compose";
    static final private String sendmail = "send";
    static final private String about = "about";
    static final private String submit = "submit";
    static final private String exit = "exit";
    JLabel lSubmit = new JLabel("Submit");
    JButton subbutton = new JButton();
    JTextArea emailfrom = new JTextArea(1,1);
    JTextArea emailto = new JTextArea(1, 1);
    JTextArea emailsubject = new JTextArea(1, 1);
    JTextArea emailmessage = new JTextArea(25, 1);
    //------BAG LAYOUT
    JLabel lFrom = new JLabel("From:");
    JTextField cFrom = new JTextField(32);
    JLabel lTo = new JLabel("To:");
    JTextField cTo = new JTextField(32);
    JFrame frame2 = new JFrame("Compose New");
    JLabel lSubject = new JLabel("Subject");
    JTextField cSubject = new JTextField(32);
    JLabel lMessage = new JLabel("Body");
    JTextArea cMessage = new JTextArea(5,32);
    //====================================
    public EmailProg() {
    super(new BorderLayout());
    //Create the toolbar.
    JToolBar toolBar = new JToolBar();
    addButtons(toolBar);
    //Create the text area used for output. Request
    //enough space for 5 rows and 30 columns.
    textArea = new JTextArea(5, 30);
    textArea.setEditable(false);
    textArea.setText("Welcome to Jeff's email program! With this program you can compose and send emails. I hope I get a good grade on thise, and marine world finds a good use for it :-D:-D (implements really just testing the scroller!!!)");
    JScrollPane scrollPane = new JScrollPane(textArea);
    //Lay out the main panel.
    setPreferredSize(new Dimension(450, 110));
    add(toolBar, BorderLayout.NORTH);
    add(scrollPane, BorderLayout.CENTER);
    //==================================
    protected void addButtons(JToolBar toolBar) {
    JButton button = null;
    //first button
    button = makeNavigationButton("/toolbarButtonGraphics/general/ComposeMail24.gif", composemail ,"Compose new Email", "compose new");
    toolBar.add(button);
    //second button
    button = makeNavigationButton("toolbarButtonGraphics/general/SendMail24.gif", sendmail,"Send The Mail","send");
    toolBar.add(button);
    //third button
    button = makeNavigationButton("toolbarButtonGraphics/general/About24.gif", about,"About","About");
    toolBar.add(button);
    //exit button
    button = makeNavigationButton("toolbarButtonGraphics/general/Stop24.gif", exit, "Exit", "Exit");
    toolBar.add(button);
    //===================================
    protected JButton makeNavigationButton(String imageName, String actionCommand, String toolTipText, String altText) {
    //Look for the image.
    String imgLocation = imageName;
    URL imageURL = EmailProg.class.getResource(imgLocation);
    //Create and initialize the button.
    JButton button = new JButton();
    button.setActionCommand(actionCommand);
    button.setToolTipText(toolTipText);
    button.addActionListener(this);
    if (imageURL != null) {                      //image found
    button.setIcon(new ImageIcon(imageURL));
    } else {                                     //no image found
    button.setText(altText);
    System.err.println("Resource not found: "+ imgLocation);
    return button;
    //=============================
    public void actionPerformed(ActionEvent e) {
    String cmd = e.getActionCommand();
    String description = null;
    // Handle each button.
    if (exit.equals(cmd)){
    textArea.setText("");
    description = "EXITING";
    System.exit(0);
    if (composemail.equals(cmd)) { //first button clicked
    textArea.setText("");
    description = "Write new mail.";
    composeWindow();
    } else if (sendmail.equals(cmd)) { // second button clicked
    textArea.setText("");
    description = "This button does'nt do anything yet :x";
    } else if (about.equals(cmd)) { // third button clicked
    textArea.setText("");
    description = "About this program. (See pop-up)";
    coolWindow();
    else if (submit.equals(cmd))
    if (cFrom.getText().equals("")||cTo.getText().equals("")||cSubject.getText().equals("")||cMessage.getText().equals(""))
    textArea.setText("One or more of the fields was not filled in.");
    else{
    try {
    String smtpServer="serverhere";
    String to=cTo.getText();
    String from=cFrom.getText();
    String subject=cSubject.getText();
    String body=cMessage.getText();
    send(smtpServer, to, from, subject, body);
    textArea.setText("");
    description = "Mail Sent.";
    JOptionPane.showMessageDialog(null, "Message Sent.");
    catch (Exception ex)
    System.out.println("Usage: java com.lotontech.mail.SimpleSender"
    +" smtpServer toAddress fromAddress subjectText bodyText");
    //CLOSE THE FRAME2 WINDOW IIIIIIIIFFFFFFF SENDING IS SUCCESSFUL!!
    }//end of else during send
    }//end of if of submit
    displayResult(description);
    //============================
    protected void displayResult(String actionDescription) {
    textArea.append(actionDescription + newline);
    //=============================
    public void coolWindow() {
    JFrame frame = new JFrame("About");
    JTextArea filecontents = new JTextArea();
    filecontents.setText("Use the tool bar to compose\n compose new emails, in which you can\n send to anyone on the\n srvhs email server. \n Fill in all the blanks before pressing send. If you dont\n you will receive an error! \n For more information about this program click on the\n information button.");
    frame.getContentPane().add(filecontents, BorderLayout.CENTER);
    frame.pack();
    frame.setResizable(false);
    frame.setSize(300,200);
    frame.setVisible(true);
    //===============================
    public void composeWindow() {
    frame2.getContentPane().setLayout(new GridBagLayout());
    frame2.setResizable(false);
    frame2.setSize(600,500);
    frame2.setVisible(true);
    GridBagConstraints gbc = new GridBagConstraints();
    gbc.insets = new Insets(5, 10, 5, 10);
    cMessage.setLineWrap(true);
    subbutton = makeNavigationButton("toolbarButtonGraphics/general/SendMail24.gif", submit,"submit","submit");
    addRow(gbc, lFrom, cFrom);
    addRow(gbc, lTo, cTo);
    addRow(gbc, lSubject, cSubject);
    addRow(gbc, lMessage, cMessage);
    addRow(gbc, lSubmit, subbutton);
    //===============================
    private void addRow(GridBagConstraints gbc, Component left, Component right) {
    gbc.gridx = GridBagConstraints.RELATIVE;
    gbc.gridy = GridBagConstraints.RELATIVE;
    gbc.gridheight = 1;
    gbc.gridwidth = 1;
    gbc.anchor = GridBagConstraints.EAST;
    frame2.getContentPane().add(left, gbc);
    gbc.gridwidth = GridBagConstraints.REMAINDER;
    gbc.anchor = GridBagConstraints.WEST;
    frame2.getContentPane().add(right, gbc);
    frame2.pack();
    //=======================
    public static void send(String smtpServer, String to, String from, String subject, String body) {
    try {
    Properties props = System.getProperties();
    props.put("localhost", smtpServer);
    Session session = Session.getDefaultInstance(props, null);
    System.out.println(smtpServer);
    // -- Create a new message --
    Message msg = new MimeMessage(session);
    // -- Set the FROM and TO fields --
    msg.setFrom(new InternetAddress(from));
    msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));
    // -- We could include CC recipients too --
    // if (cc != null)
    // msg.setRecipients(Message.RecipientType.CC
    // ,InternetAddress.parse(cc, false));
    // -- Set the subject and body text --
    msg.setSubject(subject);
    msg.setText(body);
    // -- Set some other header information --
    msg.setHeader("X-Mailer", "LOTONtechEmail");
    msg.setSentDate(new Date());
    // -- Send the message --
    Transport.send(msg);
    System.out.println("Message sent OK.");
    catch (Exception ex)
    ex.printStackTrace();
    public static void main(String[] args) {
    JFrame frame = new JFrame("EmailProg");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    EmailProg newContentPane = new EmailProg();
    newContentPane.setOpaque(true);
    frame.setContentPane(newContentPane);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    }

    The code to retrieve the messages from SMTP
    finally all working fine...
    thanx guys!!!
    package EmailProg;
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import java.io.*;
      * A simple email receiver class.
    public class SimpleReceiver
        * Main method to receive messages from the mail server specified
        * as command line arguments.
      public static void main(String args[])
        try
          String popServer=args[0];
          String popUser=args[1];
          String popPassword=args[2];
          receive(popServer, popUser, popPassword);
        catch (Exception ex)
          System.out.println("Usage: java com.mail.SimpleReceiver" +" popServer popUser popPassword");
        System.exit(0);
         * "receive" method to fetch messages and process them.
       public static void receive(String popServer, String popUser, String popPassword)
         Store store=null;
         Folder folder=null;
         try
           // -- Get hold of the default session --
           Properties props = System.getProperties();
           Session session = Session.getDefaultInstance(props, null);
           // -- Get hold of a POP3 message store, and connect to it --
           store = session.getStore("pop3");
           store.connect(popServer, popUser, popPassword);
           // -- Try to get hold of the default folder --
           folder = store.getDefaultFolder();
           if (folder == null) throw new Exception("No default folder");
           // -- ...and its INBOX --
           folder = folder.getFolder("INBOX");
           if (folder == null) throw new Exception("No POP3 INBOX");
           // -- Open the folder for read only --
           folder.open(Folder.READ_ONLY);
           // -- Get the message wrappers and process them --
           Message[] msgs = folder.getMessages();
           for (int msgNum = 0; msgNum < msgs.length; msgNum++)
             System.out.println(msgs[msgNum]);
         catch (Exception ex)
           ex.printStackTrace();
         finally
           // -- Close down nicely --
           try
             if (folder!=null) folder.close(false);
             if (store!=null) store.close();
           catch (Exception ex2) {ex2.printStackTrace();
      }

  • Plz. help with strange date insertions in access???

    HELLO all,
    i noted a strange thing, when i insert into access table the date it swaps the month and day part for some reason in some records .
    why is this happening,
    plz. help.
    code is as follows
    Calendar cal = Calendar.getInstance();
                                            cal.add(Calendar.DAY_OF_MONTH,-1);
                                            System.out.println(""+cal.getTime());
              //this swaps                         SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy")
    //this swaps too
         //SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
                                            String currentdate = dateFormat.format(cal.getTime()); // formats your date
    custom date is dd/mm/yyyy in table

    Hi vykalra1,
    As far as I know, the way dates (and times) are stored in a Micro$oft Access database has nothing to do with the display format. The format is only used for displaying the date that is stored in the Access table.
    A "field" with "Date/Time" datatype in an Access table maps to the "java.sql.Timestamp" class. Therefore, in order to insert a value into a "Date/Time" (Access) "field", you need to create a "java.sql.Timestamp" object. According to the javadoc, the "java.sql.Timestamp" constructor takes a parameter of type "long" (i.e. java primitive type) -- which represents the number of milliseconds since midnight, 1st January, 1970.
    Therefore, you don't really need to use "Calendar" or "SimpleDateFormat".
    As I understand it, you are trying to insert yesterday's date into your table. Below is an example using a sample table that has two fields -- 'name' and 'updated' -- which (hopefully) will help you. Note how I determine yesterday's date -- using millisecond calculations only.
    The below code was compiled and tested on Windows XP with J2SE SDK 1.4.1_02 and Micro$oft Access 2002.
    import java.sql.*;
    public class JdbcOdbc {
      public static void main(String[] args) {
        Connection dbConn = null;
        PreparedStatement stmt = null;
        String sql = "INSERT INTO Table1 (name, updated) VALUES (?, ?)";
        try {
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          dbConn = DriverManager.getConnection("jdbc:odbc:db1");
          stmt = dbConn.prepareStatement(sql);
          stmt.setString(1,"vykalra1");
          long now = System.currentTimeMillis();
          long millisecondsInOneDay = 1000 * 60 * 60 * 24;
          long yesterday = now - millisecondsInOneDay;
          stmt.setTimestamp(2, new Timestamp(yesterday));
          stmt.executeUpdate();
        catch (SQLException sqlEx) {
          System.err.println("Database operation failed.");
          sqlEx.printStackTrace();
        catch (ClassNotFoundException cnfEx) {
          System.err.println("JDBC driver class not found");
          cnfEx.printStackTrace();
        finally {
          if (stmt != null) {
            try {
              stmt.close();
            catch (SQLException sqlEx) {
              System.err.println("ERROR: Failed to close statement");
              sqlEx.printStackTrace();
          if (dbConn != null) {
            try {
              dbConn.close();
            catch (SQLException sqlEx) {
              System.err.println("ERROR: Failed to close DB connection");
              sqlEx.printStackTrace();
    }Good Luck,
    Avi.

Maybe you are looking for

  • Is there a fix for iphone 5 with uconnect issues?

    I have a 2014 Grand Cherokee with Uconnect and when my phone is paired to the vehicle it works fine.  When I shut my vehicle off and restart it, the phone kicks out.  Uconnect states there is no phone connected.  I keep having to pair it over and ove

  • How to get the list of employees whose full n final setellment done in mont

    hi  Experts, We are trying to get the list of employees whose full and final settelemnt were done in a particular month. Is there any way to get the employees whose fnf was done in a particular month. Please advice. Regards, V Sai.

  • ALE or XI

    Hi I have scenario in that we have two sap system one System A (ECC 6.0) and System B (ECC older than 6.0]. in current setup both system are in same landscape and interacting through IDoc (ALE settings). We are replacing System A with new SAP system

  • Error message failed "ALIGNMENT" after changing black cart on 7360 no black print.

    I have an issue with black print on my 7360, I installed a new black cartridge, ink level monitor displays full. printed test page no black print and have" failed alignment"  message after running this test. Tried to run clean" print head" same resul

  • Forms 6i PopupMenu

    Is it possible to change the popupmenu for an item programmatically? I have a button bar in which I would like to have various actions depending on which tab page I'm on. The only other idea I can think of is to have multiple buttons in the button ba