derek wrote:Hi,
If you use a 'status' indicator, then there is no need for a temporary table. Not saying one is better than the other, it's all about giving you choices.
If you use a status indicator, there are a couple of options to consider (see the attachment).
Option 1 in the attachment - simply click on the 'status' cell in frmstockout to change the cell value from 'to be confirmed' to 'confirmed' (but if you decide to have other statuses as well, clicking on the 'status' cell will toggle through each of the various statuses in turn).
Option 2 in the attachment - you can use the 'status' filter (optionally) to filter records by status and then use the 'change to status' combobox (combobox2) to select the status you want to change the records to (giving you the option to change things back if you get something wrong).
Again, no right or wrong way, it's all about what suits your application best.
Derek.
Hi All,derek
I got your point.
Thank you very much..
I updated my file since i'm still studying SQL I didn't putted any script code in my tablegrid. I saved all the data in my stockout table so i can use the edit button.
I chose option1 but i didn't put any script code in the table. just set the setting what records it will display.
Questions:
1. How to check in the tablegrid if the product is in the list already
So that my record will not duplicate and the user will go edit button. ( I tried this but using sql checking in the database if it has duplicate).
2. in my tablegrid "Expdate" how can i set into date only format? ( i already set in the property noting happens)
3.How do you calcute in the tablegrid every item will will deduct based on the OUT item and display the balance and will removed in my table if the status is "Confirmed" once I clicked the processd button.
Once it is done it will update my table products(master list) the quantity and balance field. ( i tried this but in the same form)
Thank you everyone for guiding me and helping me out .
Post's attachments questions.JPG 83.49 kb, 73 downloads since 2022-05-24
-lemodizon