Results 1 to 11 of 11
  1. #1
    MdHaziq is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    Singapore
    Posts
    124

    Why the warning?


    Hello, your video is really helpful. I was figuring out how to edit my quantity for my inventory database. The button edits the database but I keep getting a warning massage before I can perform the action.
    And I would like to list down all the data in my main table in words but the user cannot edit in the table. It is just for the user to see how many quantities are in stock.
    They can withdraw via the drop down
    Attached Files Attached Files

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    turn off warnings with DoCmd.setwarnings false

    show the table as READONLY, and user cannot edit:
    docmd.OpenTable "table",,acReadOnly

  3. #3
    MdHaziq is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    Singapore
    Posts
    124
    Thanks ranman

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Don't forget to turn them back on. More here:

    http://www.baldyweb.com/SQLWarnings.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    MdHaziq is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    Singapore
    Posts
    124

    Warning pop up before update

    Quote Originally Posted by pbaldy View Post
    Don't forget to turn them back on. More here:

    http://www.baldyweb.com/SQLWarnings.htm

    kk. I will

  6. #6
    MdHaziq is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    Singapore
    Posts
    124
    I can only choose one procedure. I am using macros as I did it via button wizard setup.
    I do not know how to code.

  7. #7
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Start to learn VBA by creating macros and then using the Convert Macro to Visual Basic button. That way Access will show you how to do what you want using code. It is far easier to develop a database using VBA than using macros.

  8. #8
    MdHaziq is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    Singapore
    Posts
    124
    Okay thanks mate

  9. #9
    MdHaziq is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    Singapore
    Posts
    124

    No change

    Hello forum,

    I tried to go to options>client settings>uncheck action query>save>close db but the change wasnt saved.

    Why is that so ?

    I have another question.

    I am working on an inventory database.

    I want to allow user to either withdraw or stock in.
    I can do one but not both.
    One way is the attachment ECDatabase.
    Two way,not working, is Inventory Program.

    I tried adding in another table for withdraw and stock in with numbers that will change the expression but it didn't work.

    I have another question,
    Right now users can enter blank and the Qty can go below 0.
    How can I prevent that from happening?

    I have another question.

    I want to display the balance in a txtbox beside my item.
    I do not know how to set the conditions because only after the user drops down till the item will we know the balance(Qty).

    Another ques,

    I would like to combine the button to run query and save in another table.
    Can it be done?
    Attached Files Attached Files

  10. #10
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    With an inventory system, you need to carry a transaction table to keep track of every in and out. This table will carry the information required to identify how much, where from, where to. You have a lot of tables and I don't know which fields are required for this, you can determine that. Then you will have a standard query that calculates the balance and you will use this whenever you need to display that figure.

    I don't know the purpose of the items table, and the action table seems to be the one to carry the transactions. Create a form based on the actions table and get the user to enter a transaction which will be saved to that table. This is the way Access works, not to run an append query to add data to a table. Once you get the design of this figured out, you can start to add the extras, such as quantity validations and balances.

  11. #11
    MdHaziq is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    Singapore
    Posts
    124
    Quote Originally Posted by aytee111 View Post
    I don't know the purpose of the items table.
    The items table what the users are looking for.

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

Similar Threads

  1. Pop Message Box Warning
    By data808 in forum Programming
    Replies: 4
    Last Post: 01-11-2014, 04:43 PM
  2. Custom warning
    By janelgirl in forum Forms
    Replies: 4
    Last Post: 05-04-2011, 01:56 PM
  3. set warning off
    By bet in forum Programming
    Replies: 2
    Last Post: 03-27-2011, 04:21 PM
  4. security warning
    By wthoffman in forum Access
    Replies: 3
    Last Post: 02-26-2011, 09:22 AM
  5. Warning messages
    By Bobcoop103 in forum Access
    Replies: 3
    Last Post: 08-12-2010, 11:45 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