Help!!! Using Microsoft Access In Applet

Hi, can somebody gimme guidience on the codings for the Database Connection to use Microsoft Database in my applet.
Also, If I need to open new window from my main applet on the click of a button, how would the codings be like? For the new window, I also need to perform some retrieving of data from the database. Do I need to create a new file for the class of the new window?

sounds like homework.... but here are a few pointers
- its not a good idea to connect to the database through an applet
- to open another window (Frame) from an applet you will have to created a trusted frame
- try searching on the forms for the question that your about to post before you post it.... u just might find the answer.... OR a tip that might help u

Similar Messages

  • How can I use Microsoft Access on my Mac? Boot camp?

    How can I use Microsoft Access on my Mac? Boot camp?

    Running Windows or using a suite such as Libre Office. It is similar to Office 2007 for Windows, but runs on a Mac, and contains a database manage that is Access compatible.

  • How can I use Microsoft Access on my Mac?

    How can I use Microsoft Access on my Mac Pro?

    Welcome to Apple Support Communities
    Microsoft Access isn't available for OS X, so you can't use it. If you need it, you have to install Windows on a virtual machine.
    On a virtual machine, you can install the Windows version you most like and the Access version you need, so you won't have any problem using it. You just need a full Windows version with its DVD or ISO image and product key, and an application like Parallels, VMware Fusion or VirtualBox to create the virtual machine. If you want to save money, System Builder versions are cheaper and you can find them at Amazon or NewEgg.
    As you have a Mac Pro, I suppose you won't have any problem using a 64-bit version, but it's important you have enough memory. Open  > About this Mac, and check how much memory you have. I recommend 4 or 8 GB of memory at least.
    After installing Windows on the virtual machine, you will be able to install Access there.
    There are applications for OS X that allow you to run Windows applications without having to install Windows. Those apps often fail, so I don't recommend you to use them

  • How do you install windows XP on macbook and use microsoft access

    how do you install windows XP on macbook and use microsoft access?

    there are two methods to intall windows on your macbook
    1st is through Parellel software
    2nd is through Boot camp.

  • Plz help using ms access as database,i want to create a login page in java

    hye frnz... plz help me m new to java
    m using ms access as database and try to create a login page where user type username and pw
    i had enter valid user entries in database i checked connectivity is working i want as user login the main window must open after checking username and pw field to database but
    now there is an error class not found exception sun:jdbc...... error
    plz help me i had stuck frm 4 days */
    import java.sql.DriverManager;
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Login extends JFrame
    //Component Declarations
    JLabel jlb1,jlb2;
         JTextField jtf1;
         JPasswordField jpf1;
         JButton jb1,jb2;
         //Constructor
         Login()
         //frame settings
              setTitle("Login Dialog");
              setLayout(new GridBagLayout());
              GridBagConstraints gbc = new GridBagConstraints();
              setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              Dimension d= Toolkit.getDefaultToolkit().getScreenSize();
              setBounds(d.width/2-175,d.height/2-100,350,200);
              gbc.insets=new Insets(7,7,7,7);
         //adding components
              jlb1=new JLabel("User ID");
              gbc.gridx=0;
              gbc.gridy=0;
              add(jlb1,gbc);
              jlb2=new JLabel("Password");
              gbc.gridx=0;
              gbc.gridy=1;
              add(jlb2,gbc);
              jtf1=new JTextField(10);
              gbc.gridx=1;
              gbc.gridy=0;
              add(jtf1,gbc);
              jpf1=new JPasswordField(10);
              gbc.gridx=1;
              gbc.gridy=1;
              add(jpf1,gbc);
              jb1=new JButton("Login");
              gbc.gridx=0;
              gbc.gridy=2;
              add(jb1,gbc);
              jb1.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                   Connection conn=null;
                        Statement stmt=null;
                        boolean found=false;
                   try
                             Class.forName("sun.jdbc.driver.JdbcOdbcDriver");
                             String dataSourceName = "Inventory";
                             String dbURL = "jdbc:odbc:" + dataSourceName;
                             conn=DriverManager.getConnection(dbURL, "","");
                             stmt=conn.createStatement();
                             ResultSet rst=stmt.executeQuery("Select * from User");
                             System.out.println(jtf1.getText()+"/t"+jpf1.getPassword());
                             while(rst.next())
                                  System.out.println( rst.getString(1) +"/t"+ rst.getString(2));
              if(jtf1.getText().equals(rst.getString(1).trim()) && new String(jpf1.getPassword()).equals(rst.getString(2).trim()))
                                       found=true;
                                       rst.close();
                                       dispose();
                                       MainWindow mw= new MainWindow();     /*created min window object created to be opend after login but not working*/     
                                       break;
                             rst.close();
                             stmt.close();
                             conn.close();                    
                        catch(ClassNotFoundException e){System.out.print(e);}
                        catch(Exception e){System.out.print(e);}
                        if(found==false) /*this portion is executing and dialog box appears invalid name and pw with class not found exception sun:jdbc.......on console */
                             JOptionPane.showMessageDialog(null,"Invalid username or password",
                                  "Error Message",JOptionPane.ERROR_MESSAGE);
              jb2=new JButton("Clear");
              gbc.gridx=1;
              gbc.gridy=2;
              add(jb2,gbc);
              jb2.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        jtf1.setText("");
                        jpf1.setText("");
                        jtf1.requestFocus();
              setSize(350,200);
              setVisible(true);
              jtf1.requestFocus();
         public static void main(String args[])
    Login l=new Login();
    Edited by: 795772 on Sep 19, 2010 4:44 AM

    795772 wrote:
    hye frnz... plz help me m new to java
    m using ms access as database and try to create a login page where user type username and pw
    i had enter valid user entries in database i checked connectivity is working i want as user login the main window must open after checking username and pw field to database but
    now there is an error class not found exception sun:jdbc...... error
    plz help me i had stuck frm 4 days */
    <snip>The subject of this forum is Oracle databases. How does your problem relate to that subject?
    Two bits of advice:
    1) Make sure you ask questions in a forum related to your problem.
    2) If you want to be taken seriously as a professional, drop the MS IM Speak and use the language of the forum. In this forum it is English, which is successfully used by many people for whom English is far from their native language.

  • Using Microsoft ACCESS on MAC os.

    What is the best way to run Microsoft ACCESS on a intel based Macbook running mac os X?
    Tryd to use FMPRO migration but had no luck. Id love to switch to a new mac book, but i run my business s/w in MS ACCESS.
    Thanks Joe

    You can migrate all your data to Filemaker using
    http://www.fmpromigrator.com/
    Or link Filemaker to ODBC with Actual Technologies ODBC plugin:
    http://www.actualtechnologies.com/
    Or run one of the Windows on MacIntel solutions such as:
    http://www.apple.com/bootcamp/
    http://www.iemulator.com/
    http://www.parallels.com/en/products/workstation/mac/
    http://openosx.com/wintel/

  • Non-technical user needs help with Microsoft Access/MS-Query connection

    I've read through some of the other threads on problems with the ODBC connection from MS Access to an Oracle database but as a non-techie I'm afraid I need to ask based on the steps I have always used. I'm not totally inexperienced as I have gone through the same steps on multiple Windows XP machine running different versions of Oracle and Office over the past 10 years but the steps aren't working this time. If there are settings that need to be checked or changed (path, etc.) I'm afraid I'll need specific instructions as to where I need to look for them.
    I'm currently trying to set up a connection on a new laptop running a 64-bit version of Windows 2007 Professional.
    1) I've installed a full 64 bit Oracle 11g client and 32 bit copy of Microsoft Office Professional Plus 2013.
    2) I set up the Oracle data source using the client Net Manager. I can connect from there.
    3) I added it in the Oracle-provided Microsoft ODBC Administrator and can connect from there.
    I the past, after doing this, the was automatically included in the list of ODBC Databases in MS Acess but this time it's not. I tried adding it as a new data source by selecting the Microsoft ODBC for Oracle driver but receive the same  "The Oracle(tm) client and networking components were not found" error message that has plagued so many others.

    This is bad code, for lots of reasons:
    (1) Scriptlet code like this should not be used. Learn JSTL and use its <sql> tags if you must.
    (2) This code belongs in a Java object that you can test outside of a JSP. JSPs are for display only. Let server-side objects do the database work for you.
    (3) You don't close any ResultSet, Statement, or Connection that I can see. Microsoft Access doesn't save any records until you close the Connection.
    (4) You don't have any transactional logic. When you write to a database, you usually want it to be a unit of work that is committed or rolled back together.
    %

  • Can you run a program that uses Microsoft Access on a Mac?

    Hi,
    I'm relatively new to Mac so pardon any ignorance...
    I want to run a program called LTV on my Mac and it's based on Microsoft Access - I have installed the latest Microsoft for Mac on here and just realised for some reason it doesn't include Access - why not?
    I tried to open LTV and it told me I should get the MDB extension from the app store. I did that, but the interface for the program is whack compared to what it looks like on a PC.
    Any suggestions or background to this issue?
    Thanks.

    You could always install Parallels and run Access under Windows?
    Windows to Mac

  • Using Microsoft Access

    Is it possible to open & use an Access database document on my Macbook Air, 10.6.8? I understand there is no Mac version of Access, is using Parallels an option?

    Your suggestions were great - opted for VMware Fusion so I could run both Mac & Windows; to get me to my goal of working on an Access database, I'll install Windows XP Pro & then Access. Cumbersome, but it's a workable solution. Many thanks.

  • HELP using Microsoft Windows Network on a BT home ...

    Hi,
    I use to have my own network where we all in the house could share drives, files and printers across the network using the Microsoft windows network using a Netgear router. This was so much easier to setup and use. Now that I have the black BT home hub 2.0 that whole facility has gone. I've gone into the BT home hub and turned off the firewall but still no luck. If I had previous mapped drives and printers, they still work but I can't add any new ones.
    Can someone please tell me how to set up the hub to be able to share drives and printers across the network?
    Thank you.

    you should not need to make any changes to the hub to enable you to share drives/files/printer across your home network.  you may need to go into the sharing centre of each pc/laptop and set up sharing again
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Help, I've accidently deleted some of my microsoft access information at work.

    We use Microsoft access for our cusotmer database at work, Im pretty new to access and I was trying to enter a new customer into the database. I clicked the "Edit Only" option, then I clicked "view" from the tool bar; from the
    drop down menu I selected "datasheet view". From there I clicked on Company ID from the datasheet view which was the very first column on the left side. I then somehow erased all my information. I still have all my customers info in the search
    option, but when I click edit its all gone. Is there a way to recover the editing information or can I copy and paste somehow? Please help! I do not want to mess up our database on my first month on the job =(

    Win7? Vista? Custom resolution?
    http://kb2.adobe.com/cps/403/kb403039.html
    Bob

  • Microsoft Access forms to pdf with hyperlinks?

    Help needed.
    I can convert Microsoft Word files to PDF and preserve hyperlinks.
    I wrote a new application for our parts department using Microsoft Access.
    When I PDF a form with a particular part displayed, it does not preserve the hyperlinks.
    Now I am in trouble because we need this feature for the engineers to be able to access supporting information about each part (data sheets etc.)
    Since the engineers are used to the "Microsoft Word" earlier version they are not amenable in going "backwards" with the "new" system and not having active hyperlinks to the support documents.
    I have searched everywhere for a solution and so far found nothing that works.
    I am using Acrobat PRO X and Microsoft Access PRO 2010
    please help as my "neck" is on the line...
    thanks
    Richard

    In Access try File->Save as PDF.
    If it's anything like in Word, the Save as PDF function does it a different way (ie. not via Postscript) compared to Acrobat. So you might get a result that way.

  • Database Microsoft Access

    This is my website
    http://www.academytexas.com/index.asp,
    currently I'm using Microsoft access to do the database storing and
    updating of News, when i upload to this sever it start giving
    problem of loading the page why?is because i am using microsoft
    access? or because I am using ASP script?
    I done it my local hosting(own computer using IIS, window xp)
    it doesn't have problem loading of information please help
    thanks.

    Hello,
    It could be a path problem on the host's server.
    You might try using a map path function like this in your
    connection string:
    STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
    Server.MapPath("access_db") & "\mydatabase.mdb;User
    Id=admin;Password="
    -or-
    You could try an OLEDB DSN-Less connection instead of using a
    DSN. It's not
    hard to do.
    Step 1 is to figure out the location of the root directory on
    the host's
    server..That's very easy to do yourself.
    Just make an asp page (I named mine "findit.asp"), and put
    this code in it:
    <body>
    <%
    Response.Write("The location of this page is:<br>")
    Response.Write(Request.ServerVariables("PATH_TRANSLATED")
    & "<br>")
    Response.Write("The location of my root directory
    is:<br>")
    Response.Write(Server.MapPath("\"))
    Response.Write Path
    %>
    </body>
    Upload it to the same location as your site's home page.
    Once your new asp page is uploaded, just navigate to that
    page in your
    browser.
    For my site, as an example, the page displays this:
    The location of this page is:
    d:\hosting\mysite\findit.asp
    The location of my root directory is:
    d:\hosting\mysite
    Now that you know the root directory location on their
    server, you can
    figure out the path to your database.
    My database folder is called _private, and it happens to be
    in the root
    directory along with my home page.
    So I just needed to add the database folder name (_private)
    and the database
    inside's name (mydatabase.mdb) to the root directory
    location:
    d:hosting\mysite\_private\mydatabase.mdb
    That's your Data Source path.
    The connection string would look something like this:
    = "Provider=Microsoft.Jet.OLEDB.4.0;Data
    Source=d:hosting\mysite\_private\mydatabase.mdb;User
    ID=;Password=;" Const
    dbType = "Access"
    IMPORTANT: If you are using a local testing server, make a
    copy of your
    connection asp page as a backup.
    The reason? The connection information you are going to put
    in this file
    will only work on the host's server.
    Once you upload the connection.asp page with the changes for
    the host,
    you'll need to change your local copy back to your DSN so it
    will work on
    your local testing server.
    Upload to server.
    Please note: From now on, when you upload (or "put" if you're
    using DW)
    files that refer to your connection asp page you're going to
    get a warning
    that your connection asp on the host is different than your
    local copy.
    Always say "No" to updating it, or you'll replace the
    DSN-Less connection
    with your local DSN one.
    I guess your problem might also be a permissions issue. Did
    you set the
    appropriate read/write permissions on the directory your
    database is in?
    I hope this helps.
    Take care,
    Tim
    "fatjedi" <[email protected]> wrote in
    message
    news:[email protected]...
    > Well, I didn't setup any DNS but then I try to setup
    their ODBC to connect
    > my database but still didn't work but it work on my
    computer.. any clue?

  • Microsoft Access with Unicode

    Hi,
    I recently upgraded my website from CF5 to CF9 running on a virtual server. Below are the specs.
    CF Version: 9,0,0,251028
    Edition: Enterprise
    Operating System: Windows Server 2008
    My old code worked fine except that certain queries were running slow. My hosting provider suggested that I change the driver from "Microsoft Access" to "Microsoft Access with Unicode." As suggested, it did make things much faster. However, there were some pages on my site that didn't work. I did some research and found I had used two "reserved" words for table names that caused the pages to fail when using "Microsoft Access with Unicode" as the driver. Oddly enough, the pages worked fine with the regular "Microsoft Access" driver.
    I am now down to just one error left that I cannot resolve. I get the following error ONLY when using the "Microsoft Access with Unicode" driver.
    Error Executing Database Query.
    Query Of Queries runtime error.
    The select column reference [GetList.ItemNo] is not found in table [GetList].
    This is the code it is referring to.
    <!--- Use QofQ to join queried records against cart data --->
    <CFQUERY NAME="GetProducts" DBTYPE="query">
      SELECT
      GetList.ItemNo AS ItemNo,
      GetList.Item AS Item,
      GetList.Grades AS Grades,
      GetList.Price AS Price,
      GetList.OrderQty AS Quantity,
      (GetList.OrderQty * GetList.Price) AS ProductSubTotal
      FROM GetList
    </CFQUERY>
    Is there an issue with "Microsoft Access with Unicode" not playing nicely with Query Of Queries?
    I would greatly appreciate any help with this issue.
    Thanks,
    Steve

    THANK YOU!  THANK YOU!  THANK YOU!
    I never noticed that I had included the column "ItemNo" more than once (as you can see below). I removed the extra and it worked perfectly!
    Thanks again!
    Steve
    <cfquery name="GetList"
    DATASOURCE="#request.ds#"
    USERNAME="#request.dsuser#"
    PASSWORD="#request.dspass#">
    SELECT
    o.OrderID,
    o.OrderDate,
    o.ShipState,
    o.ShipCountry,
    o.TaxExempt,
    o.PromotionalCode,
    oi.ItemNo,
    oi.OrderQty,
    oi.Price,
    p.ItemNo,
    p.Item,
    p.Grades 
    FROM Orders o,
    OrdersItems oi,
    Products p
    WHERE o.OrderID = #ATTRIBUTES.OrderID#
    AND oi.OrderID = o.OrderID
    AND p.ItemNo = oi.ItemNo  
    </cfquery>

  • How connect to microsoft access 97 with developer

    i need to use microsoft access database in developer
    but i couldn't use it.
    i made an odbc driver and use 'scott/tiger@odbc:my_odbc_naem'
    but i couldn't connect.
    if you can, help me please.
    thanks in advance.

    That MS Access driver is 64-bit, I think.  If SQL Developer, or JDK is 32-bit you need to use the 32-bit driver.   You can see if you have a 32-bit driver installed using  c:\windows\system32\odbcadm32.exe

Maybe you are looking for

  • IF statement in RB2.0

    I am trying to use an IF logic statement in a report but as an expression, I have been searching the net to help me find an answer as everything I have tried is sending an error when I run   The report feeds from multiple tables and has various filte

  • Compressor 4 stalling after "send to compressor" FCPX

    I just installed compressor, checked for updates to make sure I had the latest version, and tried to use "send to compressor" in FCPX.  Compressor 4 stalls and nothing occurs.  Wheel of death occurs and I must forcequit to exit.  Have any suggestions

  • Concise HOWTO on O/R storage?

    Hello all, I am trying (and trying, and trying...) to store elements of an XML document separately for faster access via Index.I am aware of the fact that I can store VARRAYs as a separate table, but it just won't work out for me. After many hours of

  • Process Flow showing as busy - though Complete

    Hi, A Process Flow is stuck because one mapping had only two out connections - OK, and Error, but no 'OK with Warning' route. The Process Flow was then moved forward by using 'Expediate'. The Process Flow completed, but the Status in the Runtime Audi

  • Automatic New Tables

    I tried searching for an answer to this but I don't really know what terminology to use. So I apologize if this has been covered recently or is really easy to find in the user's guide. I'd like to be able to automatically fill tables using data from