VB.Net, Access, and Excel

Sharky Forums


Results 1 to 8 of 8

Thread: VB.Net, Access, and Excel

  1. #1
    Has got that jut monroeski's Avatar
    Join Date
    Nov 2002
    Posts
    8,055

    VB.Net, Access, and Excel

    I'm working on a project that will involve putting information into an access database. The project will be written in VB.Net (as of now, anyway). Ultimately, we want to be able to export the info from Access to an Excel spreadsheet so we can format reports to print out. I have a few questions concerning this first, though.

    1. Is it possible? (I'm pretty sure it is, but better make sure first).

    2. If possible, I would like to export into a premade excel spreadsheet, with formulas and linked fields between a couple of spreadsheets. If it's possible, when I export info into these cells, would I have to re enter any formulas or links, or will I be able to just write over the info already in the cells?

    ::edit::
    Better yet, is there a way to just link a cell in Excel straight to a field in the database?
    ::/edit::
    Last edited by monroeski; 10-08-2004 at 02:32 PM.

  2. #2
    Catfish
    Join Date
    Jun 2001
    Location
    Gravesend, Kent, UK
    Posts
    249

    I'm not fully up to answering your q's but...

    Have some thoughts just the same.

    On the Access point, as I understand it, you need to consider some things depending upon the tool you are using assuming you are talking about a web-based application?

    If you use Web Matrix to develop you will find the overall functionality is restricted in terms of database options unless you use SQL Server or MSDE as your backend dB. You need to use Visual Studio.NET really to make use of other data sources, or be very technically au fait with .NET coding.

    In terms of the actual process you are setting out to achieve, it is most likely possible as a former colleague of mine undertook a very similar task a few years back ...which meant using older versions of Excel etc. I'm not sure exactly how he did it, but I know he was able to do so using VB for applications. The data he entered in to the Excel sheet, was not directly manipulated by formulae for the most part, as it generally entailed adding a chunk of data in, or finding the last row from the previous load, then inserting the new data. Where I recall formulae being used, was not the actual data being added-in, but in adjacent columns, any other data manipulation was handled at the dB layer.

    Not sure if this is of any help at all!

  3. #3
    . ksuohio's Avatar
    Join Date
    Oct 2001
    Location
    Atlanta, GA
    Posts
    2,721

    Re: VB.Net, Access, and Excel

    Originally posted by monroeski
    I'm working on a project that will involve putting information into an access database. The project will be written in VB.Net (as of now, anyway). Ultimately, we want to be able to export the info from Access to an Excel spreadsheet so we can format reports to print out. I have a few questions concerning this first, though.

    1. Is it possible? (I'm pretty sure it is, but better make sure first).

    2. If possible, I would like to export into a premade excel spreadsheet, with formulas and linked fields between a couple of spreadsheets. If it's possible, when I export info into these cells, would I have to re enter any formulas or links, or will I be able to just write over the info already in the cells?

    ::edit::
    Better yet, is there a way to just link a cell in Excel straight to a field in the database?
    ::/edit::
    You can create pivots and data connections in Excel. Click on Data from the menu and then Import External Data. Clicking on New Database Query will allow you to connect to a database and import data directly. Once the data has been imported you can right click on that area of the spreadsheet and modify the properties that will refresh teh data each time the spread sheet is open.
    ---------------------------------------------------------------
    - Asus M50 Laptop - C2D T9300 - 4 gig RAM - Radeon HD 3650 - Vista x64 Ultimate

    - Intel i7-3770K - Asus P8Z77-V DELUXE - 32gig RAM - Radeon HD7970 Ghz - Plextor M3 256GB/120GB OCZ Vertex3
    - LG BluRay - Razor Blackwidow Ultimate Keyboard - Logitech G9x
    - HP ZR2740w/Asus LCD - W7 Ultimate

    ---------------------------------------------------------------

  4. #4
    Sushi
    Join Date
    Feb 2008
    Posts
    1
    hi
    i also have same doubt about this thread..
    please give the suitable explaination ..

    thanks in advance
    i'm working on a project that will involve putting information into an access database. The project will be written in VB.Net (as of now, anyway). Ultimately, we want to be able to export the info from Access to an Excel spreadsheet so we can format reports to print out. I have a few questions concerning this first, though.

    1. Is it possible? (I'm pretty sure it is, but better make sure first).

    2. If possible, I would like to export into a premade excel spreadsheet, with formulas and linked fields between a couple of spreadsheets. If it's possible, when I export info into these cells, would I have to re enter any formulas or links, or will I be able to just write over the info already in the cells?

    ::edit::
    Better yet, is there a way to just link a cell in Excel straight to a field in the database?
    ::/edit::
    Last edited by monroeski : 10-08-2004

  5. #5
    Ultra Great White Shark!! richardginn's Avatar
    Join Date
    Feb 2001
    Posts
    16,118
    www.myeducational plan.com-come see my plan to fix the USA educational system. I hope this is sig legal. Major Site Design Update on July 18, 2006. On June 18, 2009 passed the 10,000 post mark. December 24, 2009: Major Theme change and more....

  6. #6
    Mako Shark wh666-666's Avatar
    Join Date
    Jul 2006
    Location
    In a red kennel
    Posts
    4,577
    Hate to tell you guys, but the thread was 4 years ago ..... Monroeski probably finished with that and had several other jobs to do since ....
    Compaq A910em: T2330 dual core 1.6Ghz, X3100 384MB GPU, 160GB sata HDD, 2GB RAM
    Gaming rig: Asus Striker II, Coolermaster GX 750w, E4600 @ 2.4Ghz, 2.5GB RAM, Zerotherm FZ 120, 9500GT 1GB
    Server: Mac mini running W23k Server - 1.8Ghz dual-core, 1GB RAM, 1x80GB, 2x500GB externals + LTO1 tape backup

    An important petition, regarding your human rights:
    https://www.change.org/en-GB/petitio...r-both-genders

  7. #7
    Ultra Great White Shark!! richardginn's Avatar
    Join Date
    Feb 2001
    Posts
    16,118
    Quote Originally Posted by wh666-666
    Hate to tell you guys, but the thread was 4 years ago ..... Monroeski probably finished with that and had several other jobs to do since ....
    Now I look at the date for this post
    www.myeducational plan.com-come see my plan to fix the USA educational system. I hope this is sig legal. Major Site Design Update on July 18, 2006. On June 18, 2009 passed the 10,000 post mark. December 24, 2009: Major Theme change and more....

  8. #8

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •