Results 1 to 3 of 3
  1. #1
    smcnair_wtc is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    2

    Create a form with variables and constants

    hello,
    i need a query/sytem of queries or preferably a vba code for this situation:

    i am creating a database to use to track purchase requests for my company. basically what happens is that different departments turn in purchase requests for multiple items. Example:
    Part Number Item Name Price Qty


    xx-xxx-xx copy paper $5.00 1
    xxxxx-xx-x pens $12.00 2
    i have a data entry form set up to enter the items quickly but there is some info that will remain constant. for example the department, point of contact, and request number for this purchase request.

    i want to be able to enter all the info that will apply to all records first and then enter the data that varies, and then possibly click a save button that will save the record.

    i want the form to look something like this below
    ___________________________
    Department: Warehouse
    Date: 1/7/2012
    Point of Contact: John Smith
    Request #: 1
    Part # Item Name Price Qty
    77SDJF PENS $5.00 2
    FDI3DE PAPER $5.00 4
    SDFSDF STAPLER $5.00 1

    Ideally in this exact situation i would be able to launch my "input new purchase request" form from the main menu. Then i would enter all the data that is the same, Department, Date, Point of Contact, and Request# first or last, doesnt matter. Then i would enter all the part #`s, item names, prices, then quantities. Then click save and in the table it would automatically apply the data that is the same without having to type in or copy/paste it down the form.

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Look at this dB template "Order management database" at
    http://office.microsoft.com/en-us/te...i:TC001018548|

    It could be close to what you want.

    Basically you could have a main form for the "constant" info and a subform to enter all the part #`s, item names, prices, then quantities.

    Also have a look at the Northwind desktop template.

  3. #3
    smcnair_wtc is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    2
    roger. looks like this is going to work fine

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 7
    Last Post: 07-22-2014, 08:29 AM
  2. Replies: 5
    Last Post: 01-03-2013, 07:47 PM
  3. data type variable constants
    By markjkubicki in forum Programming
    Replies: 2
    Last Post: 06-20-2012, 09:57 PM
  4. Replies: 3
    Last Post: 04-23-2012, 12:06 AM
  5. Replies: 1
    Last Post: 05-22-2010, 10:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums