+ Reply to Thread
Results 1 to 6 of 6

Creating a form to query and update database

  1. #1
    Registered User
    Join Date
    04-27-2010
    Location
    boston ma
    MS-Off Ver
    Excel 2007
    Posts
    4

    Creating a form to query and update database

    Hello all,

    I am very new to Excel and am very surprised about its power ( I thought the best it could do was auto sum and graphs two weeks ago!)

    I am now trying to develop a simple application for a small start up company that I want to start that is engaged in transporting University students back and forth from the airport. The application's first release will be in Excel and will aim to store and update customer, payment, and reservation information. It will also print a receipt and email it to the customer.

    I have attached a horrible hack of what I am trying to do. What is missing is a form to query the reservations and to update information in it (we have multiple steps in the reservation life cycle before it is fulfilled).

    The main interface is a sheet called ABS.
    The "database" is called reservation
    The receipt is called Receipt
    The customer and payment info "database: is called customer info
    Info for dropdowns found on the ABS sheet is found under dropdowns sheet
    The business layer sheet is doing a lot of the lookups in the database (here is where it gets really hacky)
    Ambassador Smart System (2) is there just in case I mess up ABS I have another copy (another hack)

    OBJECTIVE:
    To create a form that will lookup and update values in the reservations sheet that will query the database based on multiple criteria: cell phone number, reservation number, first and last name, status of reservation.

    I have 45 columns in the reservation "database" and I am looking to combine the solutions that I found here both by Leith attached:
    1. "Database Form"
    2. "Search Database"

    Your help is greatly appreciated...and if you have other ways to do what I am trying to do...I am all ears.

    PS...I am not really liking the fact that the database and the application are together...I would love to hear any ideas that will allow multiple people to work at the same time on the data as well as protect the data from an application crash.
    Attached Files Attached Files

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Creating a form to query and update database

    Well, I can't look at two of your excel workbooks because I don't have 07. However, I can tell you Access is MUCH better suited for what you are trying to do.
    Advantages to using Access over excel for your project:
    1. You can split out the database and application so multiple people can work at the same time.
    2. Simpler VBA and less of it.
    3. Access actually sets up databases, so no need to "create" one out of excel.
    4. Easier to use querys in Access then write your own in Excel's vba.

    If you are set on excel then ignore this post, however, you may want to simplify your request if you want help. Generally, working in multiple downloaded workbooks can be confusing and unnecessary. Otherwise take a look at Access. If you are unfamiliar, a good place to start is Microsoft's training:
    http://office.microsoft.com/en-us/training/default.aspx
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  3. #3
    Registered User
    Join Date
    04-27-2010
    Location
    boston ma
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Creating a form to query and update database

    Thanks dave,

    I agree with you that access is a better choice in all likely-hood. however, I found it to be less user friendly than Excel. I have a deadline for this database to be ready for May 3rd (we are expecting about 300 reservations on the database due to students leaving for the summer break). Thereafter, we can look at an access based solution.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Creating a form to query and update database

    If you want to use Excel as a database then you must lay out the data in the correct format,there should be no empty rows or columns within the data as you have.

    I usually have the header row in Row 5 giving some rows above for adding say Subtotal formulas etc
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    04-27-2010
    Location
    boston ma
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Creating a form to query and update database

    In the real database, I have no empty spaces...for the reservations tab, I have one empty row (row) two where I do an insert there.

    its purpose is so that it is a constant place where the "receipt" page can lookup values before being printed and saved.

    I am open to any other ways this can be done.

    Thanks for the replies folks...really appreciate it.

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Creating a form to query and update database

    You shouldn't have the insert row there,it will mean that you can't use autofilter, etc correctly. Add data at the bottom of the database. See this MS page

    The database form example is from my web site

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1