Access and Dates

Hi all I am having trouble retreiving data from an access dataabse and displaying the result in a jTextArea.
1) The first problem that I encounter is that I want to query on a specific date. Yet due my date being a string in my code and a date/time in access in gives me a type mismatch error? How do I resolve this?
2) The next error might be due to the above error. When I run the query without the date parameter it only displays the last line of my recordset and I cant figure out why!
heres the code
public void getDate()
    SimpleTimeZone tz = new SimpleTimeZone(0 * 60 * 60 * 1000, "GMT");
    tz.setStartRule(Calendar.APRIL, 1, Calendar.SUNDAY, 2 * 60 * 60 * 1000);
    tz.setEndRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 2 * 60 * 60 * 1000);
    SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
    formatter.setTimeZone(tz);
    date = formatter.format(new Date());
    dateLabel.setText(date);
    getCurrentLeaders();
    this.getContentPane().add(jTextArea1,  new XYConstraints(15, 41, 312, 201));
    this.getContentPane().add(jButton2,   new XYConstraints(234, 253, 94, 22));
    this.getContentPane().add(jButton1, new XYConstraints(139, 253, 94, 22));
    getCurrentLeaders();
  public void getCurrentLeaders()
    String query = "SELECT Date,PayNo,Full_Name,DeptNo,Current_Points FROM qryDailyLeagueTable";
/* I had this line here: WHERE Date  = '" + date+ "'"
date is set above, yet this cause an error*/
    try
      results = statement.executeQuery(query);
      while (results.next())
        String payNo = results.getString("PayNo");
        String Full_Name = results.getString("Full_Name");
        String DeptNo = results.getString("DeptNo");
        int Current_Points = results.getInt("Current_Points");
        jTextArea1.append("\n" + payNo + "\t" + Full_Name+ "\t " + DeptNo + "\t" + Current_Points);
    catch (SQLException e)
      e.printStackTrace();
  }Please please help as I am really stuck!
Thanks in advance,
Z.

Your Access column should be a Date/Time type.
You should use PreparedStatement and its setDate method - that's the only DB-independent way to escape Dates properly:
Your code is awful for a few other reasons, though.
You've got database and UI code mingled together. Ever heard of MVC separation? There's no sensible reason to do this.
Looks like you're declaring connection, statement and results as data members. Better to have them as local variables.
You don't close your statement or result set when you're done with them. That's trouble, especially with Access. It might work out for a query, but the moment you try to do an INSERT/UPDATE/DELETE you'll be another person posting about how your changes don't "stick" in Access.
You have a column named "Date" in your table? Not only is it unclear, but it's asking for trouble. Making keywords table or column names are sure to confuse the parser and any programmer who might read your code later.
I'd write it like this:
// static - no need to evaluate more than once
// Note column name change
private static final String SELECT_LEADERS
= "SELECT  "
+ "ChangeDate,PayNo,Full_Name,DeptNo,Current_Points "
+ "FROM qryDailyLeagueTable "
+ "WHERE ChangeDate  = ?";
public List getCurrentLeaders(Connection connection, Date thisDate) throws SQLException
    List currentLeaders = new ArrayList();
    Statement statement = null;
     ResultSet rs = null;
     try
           statement = connection.prepareStatement(SELECT_LEADERS);
           statement.setDate(1, thisDate);
           results = statement.executeQuery();
           while (results.next())
              String payNo = results.getString("PayNo");
              String fullName = results.getString("Full_Name");
              String deptNo = results.getString("DeptNo");
              int currentPoints = results.getInt("Current_Points");
               // Note: you'll have to write this class
               Leader leader = new Leader(payNo, fullName, deptNo, currentPoints);
               currentLeaders.add(leader);  
     // No need to catch - you weren't doing anything with a SQLException, anyway. 
     // Let the calling class deal with it.
     finally
           try { if (rs != null) rs.close(); } catch (SQLException e) {}
           try { if (statement != null) statement.close(); } catch (SQLException e) {}
      return currentLeaders;
}Now have your UI call this method, get the List of leaders, and then display it. The UI shouldn't have any database code in it, and the data access classes shouldn't have any UI in them.
%

Similar Messages

  • MS Access and Date

    I have a MS Access table which contains a Date tag on each record.
    I want to retrieve records based on:
    Today - 1 month
    or
    Today - 2 weeks
    etc.
    Can anyone tell me the syntax?
    Thanks

    I have a MS Access table which contains a Date tag on each record.
    I want to retrieve records based on:
    Today - 1 month
    or
    Today - 2 weeks
    etc.
    Can anyone tell me the syntax?
    Thanks

  • Unable to access the data and table fields from handheld

    Hi,
    I've created a Testing.sdf file on the local pc using SQL Server Management Studio, creating table, fields and insert some data. in local pc i can access the the data as normal. the problem is after i moved the file to handheld device i
    cannot access the data within the table, it shown error 'Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)' . I tried to google it, but still got no solution.
    Thanks,

    'Name Space
    Imports System.Data.SqlServerCe
    'String Connection
    'Data Source = D:\SKUDWN3 .sdf'
    Public Sub CreateDB(ByVal StrConn As String)
            'Declaration
            Dim cn As SqlCeConnection = Nothing
            Dim cm As SqlCeCommand = Nothing
            Dim SQLEngine As SqlCeEngine = Nothing
            Dim rs As SqlCeResultSet = Nothing
            Dim rec As SqlServerCe.SqlCeUpdatableRecord = Nothing
            'Tables -
            Const TB_SKUDWN3 As String = "SKUDWN3"
            'Fields TB_SKUDWN3
            Const FL_SKUDWN3_UPC As String = "UPC"
            Const FL_SKUDWN3_SKU As String = "SKU"
            Const FL_SKUDWN3_LD As String = "LD"
            Const FL_SKUDWN3_SD As String = "SD"
            Const FL_SKUDWN3_AN As String = "AN"
            Const FL_SKUDWN3_Price As String = "Price"
            Const FL_SKUDWN3_GST_FLAG As String = "GSTFLAG"
            'Create Database
            SQLEngine = New SqlCeEngine(StrConn)
            SQLEngine.CreateDatabase()
            SQLEngine.Dispose()
            'Open Connection
            If IsNothing(cn) Then cn = New SqlCeConnection(StrConn)
            If cn.State = Data.ConnectionState.Closed Then cn.Open()
            cm = cn.CreateCommand
            'Create Table, Fields
            cm.CommandText = "CREATE TABLE " & TB_SKUDWN3 & " (" & FL_SKUDWN3_UPC & " NVARCHAR (13)," & _
                " " & FL_SKUDWN3_SKU & " NVARCHAR (9), " & FL_SKUDWN3_LD & " NVARCHAR(30)," & _
                " " & FL_SKUDWN3_SD & " NVARCHAR (18), " & FL_SKUDWN3_AN & " NVARCHAR(15), " & _
                " " & FL_SKUDWN3_Price & " NVARCHAR (10), " & FL_SKUDWN3_GST_FLAG & " BIT)"
            cm.ExecuteNonQuery()
            'Close Connection
            cm = Nothing
            If Not IsNothing(cn) Then
                If cn.State = ConnectionState.Open Then cn.Close()
                cn.Close()
                cn.Dispose()
            End If
        End Sub
    'The DB was successfully created, but after moving to Handheld the fields of table can't be accessed

  • Loading MS Access Table and Data into Oracle

    Hi,
    I have few tables in MS Access. I want to create same layout of tables in Oracle and want to populate data from MS Access tables to Oracle tables.
    Please let me know if there is a way by which I can create tables and load data automatically (thru some option or script)?
    I have Oracle 10g database and its clients.
    Thanks in advance,
    Rajeev.

    You can use Oracle migration workbench
    Loading MS Access Table and Data into Oracle
    It´s very easy to use and good to import
    regards,
    Felipe

  • Excel, PowerView error in SharePoint 2013: "An error occurred while loading the model for the item or data source 'EntityDataSource'. Verify that the connection information is correct and that you have permissions to access the data source."

    I've installed SQL Server 2012 SP1 + SP server 2012 + SSRS and PowerPivot add-in.
    I also configured excel services correctly. Everything works fine but the powerview doesn't work!
    While I open an excel workbook consist of a PowerView report an error occurs: "An error occurred while loading the model for the item or data source 'EntityDataSource'. Verify that the connection information is correct and that you have permissions
    to access the data source."
    error detail: 
    <detail><ErrorCode xmlns="http://www.microsoft.com/sql/reportingservices">rsCannotRetrieveModel</ErrorCode><HttpStatus xmlns="http://www.microsoft.com/sql/reportingservices">400</HttpStatus><Message xmlns="http://www.microsoft.com/sql/reportingservices">An
    error occurred while loading the model for the item or data source 'EntityDataSource'. Verify that the connection information is correct and that you have permissions to access the data source.</Message><HelpLink xmlns="http://www.microsoft.com/sql/reportingservices">http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsCannotRetrieveModel&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=11.0.3128.0</HelpLink><ProductName
    xmlns="http://www.microsoft.com/sql/reportingservices">Microsoft SQL Server Reporting Services</ProductName><ProductVersion xmlns="http://www.microsoft.com/sql/reportingservices">11.0.3128.0</ProductVersion><ProductLocaleId
    xmlns="http://www.microsoft.com/sql/reportingservices">127</ProductLocaleId><OperatingSystem xmlns="http://www.microsoft.com/sql/reportingservices">OsIndependent</OperatingSystem><CountryLocaleId xmlns="http://www.microsoft.com/sql/reportingservices">1033</CountryLocaleId><MoreInformation
    xmlns="http://www.microsoft.com/sql/reportingservices"><Source>ReportingServicesLibrary</Source><Message msrs:ErrorCode="rsCannotRetrieveModel" msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsCannotRetrieveModel&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=11.0.3128.0"
    xmlns:msrs="http://www.microsoft.com/sql/reportingservices">An error occurred while loading the model for the item or data source 'EntityDataSource'. Verify that the connection information is correct and that you have permissions to access the
    data source.</Message><MoreInformation><Source>Microsoft.ReportingServices.ProcessingCore</Source><Message msrs:ErrorCode="rsErrorOpeningConnection" msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsErrorOpeningConnection&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=11.0.3128.0"
    xmlns:msrs="http://www.microsoft.com/sql/reportingservices">Cannot create a connection to data source 'EntityDataSource'.</Message><MoreInformation><Source></Source><Message>For more information about this error navigate
    to the report server on the local server machine, or enable remote errors</Message></MoreInformation></MoreInformation></MoreInformation><Warnings xmlns="http://www.microsoft.com/sql/reportingservices" /></detail>
    Please help me to solve this issue. I don't know if uploading the excel workbook is enough or maybe It needed to connect to another data source.
    I Appreciate in advance.

    Hi Ali.y,
    Based on the current error message, the error can be related to the
    Claims to Windows Token Service (C2WTS) and is an expected error under certain conditions. To verify the issue, please check the aspects below:
         1. The C2WTS Windows service and C2WTS SharePoint service are both running.
         2. Check the SQL Server Browser service is running on the machine that has the PowerPivot instance of SSAS.
         3. Check the domain. You're signing into SharePoint with a user account in some domain (call it Domain A).  When Domain A is equal to Domain B which SharePoint server itself is located (they're the same domain), or Domain
    A trusts Domain B.
    In addition, the error may be caused by Kerberos authentication issue due to missing SPN. In order to make the Kerberos authentication work, you need to configure the Analysis Services to run under a domain account, and register the SPNs for the Analysis
    Services server.
    To create the SPN for the Analysis Services server that is running under a domain account, run the following commands at a command prompt:
    • Setspn.exe -S MSOLAPSvc.3/Fully_Qualified_domainName OLAP_Service_Startup_Account
    Note: Fully_Qualified_domainName is a placeholder for the FQDN.
    • Setspn.exe -S MSOLAPSvc.3/serverHostName OLAP_Service_Startup_Account
    For more information, please see:
    How to configure SQL Reporting Services 2012 in SharePoint Server 2010 / 2013 for Kerberos authentication
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build.  The same call works fine when running on the device

    I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build. The same call works fine when running on the device (iPhone) using debug build. When running with a release build, the result handler is never called (nor is the fault handler called). Viewing the BlazeDS logs in debug mode, the call is received and send back with data. I've narrowed it down to what seems to be a data size issue.
    I have targeted one specific data call that returns in the String value a string length of 44kb, which fails in the release build (result or fault handler never called), but the result handler is called as expected in debug build. When I do not populate the String value (in server side Java code) on the object (just set it empty string), the result handler is then called, and the object is returned (release build).
    The custom object being returned in the call is a very a simple object, with getters/setters for simple types boolean, int, String, and one org.23c.dom.Document type. This same object type is used on other other RemoteObject calls (different data) and works fine (release and debug builds). I originally was returning as a Document, but, just to make sure this wasn't the problem, changed the value to be returned to a String, just to rule out XML/Dom issues in serialization.
    I don't understand 1) why the release build vs. debug build behavior is different for a RemoteObject call, 2) why the calls work in debug build when sending over a somewhat large (but, not unreasonable) amount of data in a String object, but not in release build.
    I have't tried to find out exactly where the failure point in size is, but, not sure that's even relevant, since 44kb isn't an unreasonable size to expect.
    By turning on the Debug mode in BlazeDS, I can see the object and it's attributes being serialized and everything looks good there. The calls are received and processed appropriately in BlazeDS for both debug and release build testing.
    Anyone have an idea on other things to try to debug/resolve this?
    Platform testing is BlazeDS 4, Flashbuilder 4.7, Websphere 8 server, iPhone (iOS 7.1.2). Tried using multiple Flex SDK's 4.12 to the latest 4.13, with no change in behavior.
    Thanks!

    After a week's worth of debugging, I found the issue.
    The Java type returned from the call was defined as ArrayList.  Changing it to List resolved the problem.
    I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid.  And, why it works in Debug mode and not in Release build is even stranger.  Maybe someone can shed some light on the logic here to me.

  • I had an iPod touch, but it was stolen or lost. Now that I have a new one with a new Apple ID, is there someway I can access and download all my old photos and data from my old Apple ID to my new device? I still remember my old Apple ID and password.

    I had an iPod touch, but it was stolen or lost. Now that I have a new one with a new Apple ID, is there someway I can access and download all my old photos and data from my old Apple ID to my new device? I still remember my old Apple ID and password.

    Restopre from backup
    To restore from backup see:
    iOS: How to back up     
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    Also,
    - If you used PhotoStream then try getting them from your PhotoStream. See that topic of:
    iOS: Importing personal photos and videos from iOS devices to your computer

  • How do I access the data saved on my time capsule?  for example, if i try to view my photos it tells me that i have 2.4gb of photos and gives me the option to "view with iPhoto"....but when i click on "view with iPhoto" nothing happens...  thanks!

    how do i access the data stored on my time capsule?  for example, if i try to view a photo, i get the option to "view with iphoto" but when i click on "view with iphoto" nothing happens.  i'm having similar trouble openning up movies, music, etc.  it appears as though the files exist / saved on the time capsule (because i can see how much storage they consume), but i can't open them.  thanks!

    Unfortunately, Apple removed the feature to "browse backups" in Time Machine backups of iPhoto a few years ago.
    You have to restore the entire iPhoto library to a separate location to be able to "see" it, and then choose the specific images that you want use.
    For complete details, see #15 in Pondini's excellent support document Time Machine -- FAQ.  Check the information in the pink box there.
    Frequently Asked Questions

  • I had to create a new profile in Firefox and now, I can't access important data such as bookmarks which I desperately need.

    After two days of not being able to open Firefox, I found an article on this website which suggested that I create a new profile. I followed the instructions (which never stated that I should first backup Firefox or my old profile) After creating the new profile, Firefox is once again working fine but, I am unable to access important data such as bookmarks and history.
    I have followed several suggestion on this website but, I am still unable to find my old profile content.

    As long as you did not uninstall Firefox and remove personal data, your old profile still should be in the same location. Depending on how messed up it was, here are two options:
    '''(1) Use the profile manager to start Firefox up in your old profile and create a fresh bookmarks backup.''' If it didn't run, this won't be useful.
    To start in a different profile, Exit out of Firefox and start it up from the Start menu, search box, using
    firefox.exe -P
    Your old profile may have a name like default.
    Then you can create a fresh backup or export of your bookmarks (or both) to a neutral location (e.g., the Documents folder). These articles have the steps for creating these files:
    * [[Restore bookmarks from backup or move them to another computer]]
    * [[Export Firefox bookmarks to an HTML file to back up or transfer bookmarks]] (note: does not preserve tags you have assigned to bookmarks, if any)
    Exit Firefox, use the profile manager to return to your new profile, then you can either restore the bookmark backup or import the HTML file. The difference is that a restore completely replaces whatever exists now, while an import adds to what you have now.
    * [[Restore bookmarks from backup or move them to another computer]]
    * [[Import Bookmarks from an HTML file]]
    Success?
    '''(2) Restore an old bookmark backup.''' Firefox creates these files regularly, but it might not be perfectly complete.
    To access the old files, I suggest starting from your current (new) profile folder. You can open that from within Firefox using either:
    * "3-bar" menu button > "?" button > Troubleshooting Information
    * (menu bar) Help > Troubleshooting Information
    * type or paste about:support in the address bar and press Enter
    In the first table on the page, click the "Show Folder" button. This should launch a new window showing your ''current'' settings files. Using the address bar of that window, click up to the Profiles folder level and then double-click into your old profile folder, then into its bookmarkbackups folder. Copy the latest backup file to a neutral location (such as your Documents folder).
    Back in Firefox, try to restore the older backup. Note: this will completely replace your bookmarks in this profile, so if you have saved new bookmarks you want to save, please perform the optional steps in the following list:
    * Optional (preserve new bookmarks): [[Export Firefox bookmarks to an HTML file to back up or transfer bookmarks]]
    * [[Restore bookmarks from backup or move them to another computer]] - use Choose File to go to your Documents folder to get the old backup
    * Optional (add new bookmarks to the restored set): [[Import Bookmarks from an HTML file]]
    Success?

  • I have an external hard drive from my time capsule that stopped working on me. I am attempting to access the data with a hard drive reader on my MAC. I am able to see the drive in disk utility and under system info USB. But I am unable to access the data.

    I have an external hard drive from my time capsule that stopped working on me. I am attempting to access the data with a hard drive reader on my MAC. I am able to see the drive in disk utility and under system info USB. But I am unable to access the data and it does not show on the desktop when connected.

    Ok if disk utility was able to verify the drive I doubt there is any problem.. are you trying to open a TM backup??
    You need to mount the sparsebundle then check the actual info inside the bundle.
    Don't use disk warrior.. if the disk has verified then unless you deliberately deleted files there is nothing that is going to do.
    Pondini has a lot of stuff about getting access to the sparsebundle.
    http://pondini.org/TM/17.html
    But if you have copied info to the TC that is now gone.. and the disk is ok.. I am not sure.. the TC will not have deleted the files itself.

  • How do i get all my data and info from my old iphone onto my new one without access to the original itunes that i set my first iphone up on? my partners itunes keeps telling me that its going to replace all my apps and data with his stuff

    how do i get all my data and info from my old iphone onto my new one without access to the original itunes that i set my first iphone up on? my partners itunes keeps telling me that its going to replace all my apps and data with his stuff

    ok so i have my own i tunes library - how do i get all my old apps onto my new library?

  • My MacBook Pro is not recognizing my external hard drive.  The hard drive is listed in disk utilities but an icon does not pop up and I cannot access the data.  Is there any way to resolve this?

    My MacBook Pro is not recognizing my external hard drive.  The hard drive is listed in disk utilities but an icon does not pop up and I cannot access the data.  Is there any way to resolve this?

    WE know Disk Warrior is more reliable, hence more useful, and should be in any disk mechanics toolchest.
    For the record, I don't know anything of the kind. I have yet to see evidence that Disk Warrior is useful at all.
    What I do know is that you seem to take every opportunity you get to promote it in these forums. Do you work for Alsoft?
    Let me be a little more explicit. My opinion is that Disk Warrior is a waste of money if one has backups. If a journaled HFS directory is so badly corrupted that it can't be repaired by Disk Utility, then the volume should be reformatted and restored from backup, which has the same effect as running DW, but is probably faster and doesn't cost $99.

  • My hard drive failed last year and was replaced under a scheme at an Apple Genius bar. I couldn't access my data to erase anything and the apple guy said he couldn't guarantee its safety. Since then I've been the victim of fraud twice. Coincidence?

    I was told the hard drives were sent to China for refurbishment and the guy was pretty flippant about my concerns. I couldn't erase anything beacuse I couldn't access anything. I had to sign a waiver. He acted as if I was getting something for nothing and should quit complaining. Now my bank account and credit card have been compromised and it just seems a little too coincidental for my liking. Every single piece of my life was stored on that hard drive including photos of my kids and it makes me sick to think that someone could have accessed it. I think Apple should be more responsible and caring about their customers concerns. I have an ipad, imac and ipod touch and we have have other Apple laptops, phones, ipads and ipods in the family. I'm not sure I would happily buy any more items after such poor customer relations. I would rather have kept the old hard drive but apparently this wasn't an option. Fuming. Can't even remember half the accounts I've opened but will have to settle for changing all banking details. Buyer beware...

    No hate. Not sure where you got that from. Just stating facts as I know them about the people employed at the Apple stores.
    Yes you ARE, were, accusing whoever took in or had access to your old drive as the person or persons that is accessing your data to commit fraud against you. That is exactly what you stated in the title.
    I think you are slightly paranoid.
    TheNic767 wrote:
    Wow so much hate! I never insinuated that the guy was a genius or not, I just mentioned the name of the service. I also was not accusing him or an apple employee of fraud. My concern was that it would be compromised after its arrival in China. I have also been told by friends way more IT literate than me that removal of data from a failed hard drive is relatively simple with the right equipment and skills. Of course I am no genius in these areas myself and don't profess to be but I would expect a rather more sympathetic ear from the staff and possibly an explanation on the unlikelihood/likelihood of my data being stolen. Unlike the character assassination I appear to be getting from you. Thanks for your help. Have a nice day

  • I like the idea of auto back-up for my new iMac, Ipad and PC Netbook, particularly if I can access all files and data stored on any device.  But I have a Conceptronic router.  Will Time Capsule work with this and how?

    I like the idea of auto back-up for my new iMac, Ipad and PC Netbook, particularly if I can access all files and data stored on any device.  But I have a Conceptronic router.
    1. Will Time Capsule work with this and how?
    2. Can my printer USB be plugged in and then shared between the devices?
    3. Can I create a network and how?
    4.  What happend when a visitor logs onto my existing wireless router?
    I'm new to Macs (well a returning user having started with Mac Plus!!) and not very technical.  Any help / advice will be much appreciated.
    Ray

    The key to what you seem to want to do is to be able to get Apple's Time Capsule router to "join" the network that your Conceptronic router.  I believe that works with some third-party routers, but I've never seen a list of those that work in such a configuration and I have no experience with Conceptronic equipment.
    You might be better off with a Network-Attached Storage (NAS) device instead of a Time Capsule.

  • I installed Windows 7 in my Macbook pro, I can access Windows data in Mac, but I can't copy and delete it. and the same case while i am working in Windows. Could you please guide me if there is any solution, where I could copy/paste/delete my data.

    I installed Windows 7 in my Macbook pro, I can access Windows data in Mac, but I can't copy and delete it. and the same case while i am working in Windows. Could you please guide me if there is any solution, where I could copy/paste/delete my data.

    OS X can natively read NTFS of Windows, but not write to it.
    Windows can't read or write to HFS+ of OSX, and that's a good thing from a security standpoint.
    Ideally if you share files between operating systems you should have a FAT/MSDOS formated USB key or hard drive. (exFAT external drive if any of your files are over 4GB in size) both these formats are universal for OS X or Windows.
    If you install software into Windows and OS X to read each others formats, then you have to pay to update/upgrade it deal with headaches.
    If you swtich between Windows and OS X a lot, don't need full hardware performance for Windows, you may consider installing virtual machine software like VMFusion or Parallels which can take a copy of your Windows in Bootcamp and place it into OS X as a file then run that copy of Windows in a window in OS X like so.
    Advantage here is you run most of your light weight Windows programs like this at the same time as OS X.
    Benefit is you can run just about any Windows or Linux version and OSX server editions (not client versions)
    Bootcamp only allows Windows 7, that's it now.
    You'll also be interested in two fre pieces of software, Carbon Copy Cloner and Winclone on macupdate.com.
    CCC clones OS X partition and Winclone clones the Bootcamp partition. Valuable for you.
    Good Luck

Maybe you are looking for