Java for work on Excel and Access

I have a program that imports an EXCEL file as an Access database.
One field in the EXCEL file contains ZIP codes which, when imported into the database are stored as numbers/double. I would , however, like to import these as char. Any way I could do this using a code?

I am using the resultset and the metadata functions
to get the column type. I use the getString(6)
function in the resultset..which returns the data
type..
When the zips are arranged in random order..this
retuens the column type as NUMBER which messes up the
program...however if I arrange the column in the
descending order...it returns VARCHAR and the program
runs perfectly...How can I get it to return NUMBER
even if the contents of the column are arranged
randomly?You can't.
This is an Excel problem exclusively and if you want more help with it then you should post that part of your question on an Excel specific forum and not here.

Similar Messages

  • Office 2010 & 2007 - Excel and Access File Locking Out On the Network With Multiple Users

    This is also posted in the Office 2010 - IT Pro General Discussions, but was suggested to repost here, since a definitive answer was not found.
    Hi,
    An issue that's happening is that Excel and Access files are locking on the network. We're currently using Office 2007 and 2010.
    Here are some different scenarios that are happening:
    When opening the file it is locked out by “User X” which is the person that has the file locked out and no one else can open the file.
    When opening the file it is locked out by “User Y” which is NOT the actual person, but is locked out by “User X” and no one else can access the file.
    When opening the file  it is locked out by “…another user” which is generic and no one else can access the file.
    The two more common events are incident 1 and 2 with 3 happening the less common.
    This message will continue until the sessions are closed through computer management on the file server.
    The file server is running Windows Server 2003.
    This does happen on both Windows XP and Windows 7 clients.
    This does happen for users using Office 2007 and Office 2010.
    There are two sets of Office 2010 Users when it comes to patches. Everyone has the most current patches with Office 2010 SP2 while anyone that has Microsoft Project 2010 is using all the current update before Office 2010 SP2.
    All users that are using Office 2007 have all the current patches and service packs.
    Another variable is that we have users that will leave a file open on the network for 3+ days and after a while it will lock the file out.
    Also we have Shadow Copy that runs daily on the system which I'm not for sure if that impacts anything if a file is opening during that time.
    Any ideas on how to mitigate the lock out issues would be appreciated.
    Thanks,
    Binary Process
    Edit November 12, 2013: This issue can occur if and if not another person actually has the file open. If the person doesn't have the file open then there is a hung connection which needs to be disconnected by going to the Computer Management of the File
    server.

    Hi Binary,
    I know that the description of the hotfix does not relate to the issue. The purpose is to install it for upgrading SMB related file.
    A similar issue I encountered before:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/b7fcc59b-52d9-4a02-863a-1a529bcb8cb1/temp-doc-etc-files-dont-close-after-a-file-closes-this-causes-locked-files?forum=winserverfiles
    It is resolved by upgrading SMB files so maybe it will help on your case.
    Another hotfix which may related:
    http://support.microsoft.com/kb/983458
    If you have any feedback on our support, please send to [email protected]

  • How do you make OS X Lion work with excel and word? I have these programs that I use for work?

    I up loaded Lion...now windows word and excle dont work. I use these for work. How do i get them to work with Lion.

    jbeustis wrote:
    I up loaded Lion...now windows word and excle dont work. I use these for work. How do i get them to work with Lion.
    Upadte to the current version of Office, 2011

  • Java Not Working On Firefox and 10.7.2

    One Java s installed in Safari, Firefox 7 only displays an empty box in OS X 10.7.2. This seems to apply to all versions of Firefox post 3.6.(23). Has anyone else seen this problem? I there a solution?

    I have the same problem with Camino (Mozilla's MAC browser).  Though JAVA is showing in utilities and enabled it's only working for Safari.  Trouble is that my work site does not like Safari, never has so had to use Camino there instead.
    Is JAVA a problem with other browsers like Opera, Chrome & Firefox?  Iv never had problems in the past with Camino because it's specifically build for MAC.  But with the upgrade to Lion ... it's stopped working on the employer site due to JAVA.

  • Working with EXCEL and WORD files on a Mac Pro

    Hello,
    I have a lot of EXCEL and WORD files and the compatibility with NUMBERS and PAGES is not really satisfying. Is there a EXCEL and WORD app which runs without surprises on a Mac Pro?

    Welcome to Apple Support Communities
    Microsoft sells its own Microsoft Office version for OS X > http://www.microsoft.com/mac Microsoft Office for Mac will be the application that will give you less headaches when using Office documents, so I recommend it.
    Another application you should consider is LibreOffice, which is free > http://www.libreoffice.org

  • Why we maintain usage for work approval,  applications and documents in WCM

    hi,
    what is significance of maintaining usage for Work Approval, Work clearance Application and Work clearance documents in Customizing of work clearance management.
    Please reply.... with detailed notes..
    regards,
    Amit kushwaha

    Hi,
    For WCD Usage u can have further controls given in customizing.
    But u can hide Usage in WA and WCA, if its not used. But at application level u can use it for various types of permits, which u can use as the triggering point for printouts.
    If this answers ur query u can give points.
    Thanks.

  • Separate Accounts for Work Email (VPN) and Gmail

    I have 2 email accounts on my 8320:  one is a vpn for work and the other is gmail for personal and to take oversized files that my work server can't handle.
    i have successfully set up botht of the email accounts and am receiving messages.  the problem is that i am receiving personal gmail messages into my work account.  i have tried deleting the gmail account and readdding it, but the same thing happens each time.
    if you can help, please tell me STEP by STEP how to fix this.
    Thanks very much.

    Hi and Welcome to the Forums!
    Are you sure about "VPN"? That would be, well, unusual to say the least ("not possible" might be a better description).
    Do you mean that your work email is BES? If so, then read this:
    By default, BES email is put only into the Messages icon/app. BIS emails are placed into their own icons, but they remain contained in the main Messages app. This is how it works by default. It is not redundant -- rather, think of Messages as the catch-all place, with the independent BIS icons being a filter, pulling (from Messages) to them only the messages that pertain to them...but if you act on an email (read, delete, etc.) in one, the change will be reflected in the other.
    Your BES Admin can push a BES-only email icon to your device. This solution is free, but must be conducted at the BES server, and will affect all users on that BES server.
    KB15003 How to create a separate icon on the BlackBerry smartphone for only BlackBerry Enterprise Server messages
    Or you can get the Empower BES Inbox application. This solution costs (per user), but does not require a change at the server, and only affects the one user.
    http://www.getempower.com/Empower_BES_MailBox.php
    Or, if your device OS has the option, you can dictate what shows in Messages:
    Homescreen > Messages > BBKey > Options > Main Message List Settings > uncheck what you want to suppress in Messages
    Neither of the first two solutions will do anything about Messages -- it will continue to contain everything that it today contains. All they will do is activate an additional icon on your homescreen that is a filter for your BES-only emails. You can hide or move the Messages icon/app somewhere out of the way, but beware -- there are more than just emails that arrive in Messages...there will come a day when you have a new message flag and only by digging through Messages will you be able to find that message.
    Hopefully that helps explain how it all works!
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Java with EXCEL and Access

    I have a program that imports an EXCEL file as an Access database.
    One field in the EXCEL file contains ZIP codes which, when imported into the database are stored as numbers/double. I would , however, like to import these as char. Any way I could do this using a code?

    I am using the resultset and the metadata functions to get the column type. I use the getString(6) function in the resultset..which returns the data type..
    When the zips are arranged in random order..this retuens the column type as NUMBER which messes up the program...however if I arrange the column in the descending order...it returns VARCHAR and the program runs perfectly...How can I get it to return NUMBER even if the contents of the column are arranged randomly?

  • Java-JSP working with packages and classes

    Hi everybody,
    I'm bearly new on Java-JSP developping and I wanted to know how Tomcat (for example) manage the imported packages and classes.
    The fact is I'm working on a project ('/bob') which use some packages that I don't see in the '/bob' directory. So, is that possible that '/bob' is downloading packages and classes from Internet to '/bob/download' virtual repertory and use it? If it is true, is it possible to override this download by making '/bob' project using local packages or classes (example : com.boblibrary.classes.util in '/bob/WEB-INF/classes/com/boblibrary/classes/util') instead of downloading it?
    Therefore, the '/bob' project is using bugged classes (that I think it downloads from Internet) which I can't correct.
    Thanks for your help.
    - Renaud

    Thank you for your answer, but I can't imagine where is physicaly the class that my project use and show me as http://localhost:8080/atlassian-jira-3.13.2/download/ressources/br.com.ecore.jira.plugin.projectViewPlugin:ProjectViewTabPanel/js/projectviewtabpanel.js. Where is that Javascript file suppose to be on my hard drive? Or where is that class 'br.com.ecore.jira.plugin.projectViewPlugin' suppose to be on my hard drive? If it is not dowloaded from the Internet.
    I have no trace of that class on 'atlassian-jira-3.13.2/', neither on 'jdk1.6.0_18/', 'jre6/' or 'apache-tomcat-5.5.28/common/classes/'.
    Thanks.

  • New Outlook 2013 Installation - How to configure for default pop email and access exchange 2003 server for shared folders only

    I have successfully installed and configured outlook 2013 to access my pop.integra.net email accounts.  We have an 2003 exchange server we use for shared folders which I am having difficulty accessing.
    My preference would be to set up my access to the exchange server and use the same data folders for email as are in use for my pop email account.  In outlook 2003 this was simple, but in 2007 on up it seems this feature has been hobbled.  Is there
    a workaround to get both accounts to use the same database?
    Next issue is if I use the Mail client wizard under Control Panel to set up access to the exchange server - everything looks fine but when launching outlook I receive the following 2 error messages:
    "The resource that you are trying to use is located on an unsupported version of Microsoft Exchange.  Contact your e-mail administrator for assistance."
    "Cannot start Microsoft Outlook. Cannot open the Outlook window. The set of folders cannot be opened.  Your Microsoft Exchange administrator has blocked the version of Outlook that your are using.  Contact your administrator for assistance."
    Obviously the optimal solution is to upgrade the Exchange Server - assuming that is not an option - are there any workarounds?
    Any assistance would be appreciated.

    Downgraded to Office 2007.
    So now have a new Windows 8.1 laptop with outlook 2007 installed.
    From what I have been told this should allow me to connect to the Exchange2003 server
    I set up the pop account - works fine
    set up the exchange account through Mail.exe and am unable to launch outlook.
    "Microsoft Exchange is Unavailable"
    "Retry - Work Offline - Cancel"
    Then
    "Cannot start Microsoft Office Outlook.  Cannot open the Outlook Window.  The set of folders cannot be opened.  The information store could not be opened."
    The data file path is the same for both the pop account and the exchange account:
    C:\Users\Scott\app data\local\microsoft\outlook\outlook.pst
    How do I get this to work?
    Help!

  • Java applet works in windows and does not work in linux

    Hello, guys!
    I'm working with site which is located in vpn network at work.
    I use browsers firefox 3 and opera.
    When I want to open java applet using firefox or opera at first everything is fine then on the last stage of loading(judging by progress bar) applet hangs(progress bar hangs) and when I reload page firefox shows in the bottom bar: applet <applet's name> bail.
    In windows everything works both in ie6 and firefox 3.
    On both environments I have the jre 6 installed.
    please help!

    Ok, I installed ies4linux and jre 1.5.16. I can work with that but when I start applet screen goes black and window frames dissapear.
    To solve this problem(feature?) I disabled DirectX-based acceleration for Java 2D but that works for javacpl.exe and does not work for my applet.

  • Can I create a class and package for my inframe AS and access it global

    Ls,
    I made an app using only inframe actionscript in a .fla;
    transfrerring variables from frame 1 to frame 2 is unreliable.
    Some sources say the persist over frames but i found that not to be reliable.
    Arrays seem to be filled with the right values. Normal int vars declared in frame 1 fail some time.
    You should have used classes i hear you say,  and right you are.
    But I didnt.
    Now im using either reloading, re-initing and/or the sharedobject.
    Anyhoe..
    Question:
    If I declare a class for my main .fla file.,
    then declare, instantiate and load the globals i want in this main class,
    will I be able to acces these variables in my main .fla timeline script?
    If so, I could slowely reconstruct my .fla into smaller objects/classes and make it a real app.
    Just starting from scratch is. welll..i dont even want to think about that.
    Highest regards,
    Mac

    Yes! I got it to run as Mobile project.
    Now, how to test on my mobile thru USB.
    I'm more/only used to working from FLASH CS5.5
    Although I like the builder, it feels really flexible, it also seems more work(yeah still lazy).
    Is there an advantage to using the builder over Flash CS?
    Thank you.. again...again
    Mac

  • How can one get java to work with SnowLeopard and FF13

    SInce the install of the most recent Java update (9)  for SnowLeopard (10.6.8) Firefox 13 simply advises that there is no plugin installed.  The behavior the update indicates will take place (where the web page provides the option to enable the plugin) simply has never presented itself. At this point, java is simply no longer available on a Mac running SNowLeopard and using Firefox.  Is there a solution to this other than upgrading to Lion?

    Yes. However, do note that FF is only on the machine for testing, I don't use it, preferring Safari. Any further issues with FF are best answered at http://support.mozilla.org/

  • Can I have one Apple ID for personal (music) and one for work (syncing contacts and mail)  on the save device

    Between my husband and I we have 6 devices and we are only allowed to share our Apple ID across 5.  Some of the devices are for music and outlook and some are just for music - can I have a separate Apple ID for my mail and contacts.  ie. Can you use two different Apple ID's on the same device?

    Oh maybe ipads and iphones aren't counted in the five

  • Should I buy iMac or MacPro for working with video and dvd?

    I currently have a Macbook which I am using to edit camcorder footage in iMovie and iDVD. I have spent the last three years travelling and living abroad and have consequently accumulated a large backlog of footage and am now trying to work through it all and get it on to DVD. When I bought my Macbook it was intended as a portable stop gap whilst living abroad with the intention of upgrading to an Apple desktop when home again. Given that I want to work on getting through many hours of camcorder footage, and also start getting to grips with computer based music production, would an iMac with plenty of ram be sufficient or would I be better off splashing out more and getting a MacPro plus screen?

    Welcome 12frets56
    I agree with the above recommendation, "Only you can decide how much you want to spend."
    Tell us (if you don't mind) exactly how much you wish to spend so we can further assist in advising you on which system might best address your needs. Also, only you can decide how important portability is to you in terms of working from a laptop as opposed to a beefier system. Is portability a critical factor to your work, or not? If not, go with a full size custom tower.
    Here's something else you may wish to consider prior to the actual purchase of any apple hardware / system configuration. Shop software first and foremost. Then built around that while addressing system requirements. In other words, don't place the cart before the horse (if you know what I mean).

Maybe you are looking for