Results 1 to 9 of 9
  1. #1
    Richard is offline Novice
    Windows Vista Access 2003
    Join Date
    Oct 2009
    Posts
    4

    Inventory Entry Update help

    I'm trying to design a inventory DB, however, when it comes to data entry I want what was my current stock changed to my current count example below.

    Item:___Current Stock:___My Count:
    Apples__1900___________879
    Oranges_725____________600

    what I want to do is create a form "Continuous Forms" listing all inventory and enter in my daily counts in that form then when I am done entering all the counts I would like to update the inventory and what I would like to see is My Count become my Current Stock and then My Count cleared for next day of inventory.

    Currently I am testing it out and I can update what is on the form, however, My Count returns the same value in each record.

    for example (This is what happens)
    Item:___Current Stock:___My Count:
    Apples__879____________879
    Oranges_879____________600

    as to what I would like it to do is this:
    Item:___Current Stock:___My Count:


    Apples__879_____________0
    Oranges_600_____________0


    Any help would be much appreciated.

  2. #2
    Richard is offline Novice
    Windows Vista Access 2003
    Join Date
    Oct 2009
    Posts
    4
    nvm got it thanks

  3. #3
    cjwagner is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2009
    Posts
    4
    Well how'd you do it?

  4. #4
    daniels31790 is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2010
    Posts
    6
    I'd like to know how that is done as well. I have the same question.

  5. #5
    MAF4Fam6's Avatar
    MAF4Fam6 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Dec 2009
    Location
    Fruit Heights, Utah USA
    Posts
    140
    The following is one way to accomplish this:

    1. Ensure your Form's Record Source is a Query.

    2. Insert a Command Button in the Form Header section.

    3. Use VBA or Macro to perform the following Actions from the Command Button's OnClick Event:

    a) Save the Current Record.

    b) Run the following SQL statement:

    Code:
    UPDATE FormQueryName SET FormQueryName.CurrentStock = [MyCount], FormQueryName.MyCount = 0;
    - Change "FormQueryName" in the SQL statement (3 instances) to read: Name of your Form's Query

    c) Use the Requery command to refresh your Form.

    A quick sample of an Access 2007 database (inside zip file) is attached.

    Hope this helps.

    -RC

  6. #6
    daniels31790 is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2010
    Posts
    6
    It helps a lot, thank you.

  7. #7
    MAF4Fam6's Avatar
    MAF4Fam6 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Dec 2009
    Location
    Fruit Heights, Utah USA
    Posts
    140
    You are welcome!
    Glad I was able to help out.

    -RC

  8. #8
    daniels31790 is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2010
    Posts
    6
    Hey quick question,

    I don't have the RunSQL in my Actions list. I was saving this project until now, and found out I didn't have it.

    Thanks

  9. #9
    daniels31790 is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2010
    Posts
    6
    Nevermind found it, had to click "show all actions"

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

Similar Threads

  1. Accessing my inventory remotely
    By Steven in forum Access
    Replies: 2
    Last Post: 02-27-2010, 11:56 AM
  2. Database design for simple inventory
    By toptech in forum Database Design
    Replies: 12
    Last Post: 10-24-2009, 07:24 AM
  3. Creating an Inventory Form in Access
    By KIDRoach in forum Forms
    Replies: 0
    Last Post: 09-13-2009, 11:39 PM
  4. Table Entry Sum
    By seraph in forum Access
    Replies: 5
    Last Post: 08-15-2009, 09:49 AM
  5. Replies: 1
    Last Post: 12-30-2008, 08:58 PM

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