Clear Subform and Form with Command
Thank you for taking the time to report an issue.
What's wrong... Please write below.
The users select invoice number from a unbound field on the main form which loads applicable data in the subform. I put a clear button on the main form to clear the fields but it gives me errors about how I can't change the record because it would cause duplicates.
How do I clear the fields when the users exit the form without gettingerrors.
In short, the data will be displayed in form until you clear it with a button - (dataentry will be yes, till you press the clear button)
My reason for doing this - when I temporarily close the main form and return later, all data captured are deleted from the subform, and I then have to check what was the last data captured, before continuing with the next lot. This wastes time.
the main form is "StocktakeF"
the subform is called : "Fis_stocktakeSF"
When I click a command button on the form (Unlock) I want it to make the command buttons on the subform to become enabled.
How do I go about changing the properties of a command button on a subform?
I have a command button programed to save the record and would like it to clear the highlights for me as well. What is the best way to accomplish this goal?
I've tried putting me.combobox=null in just about every event the main form has but nothing works. Is there a way to clear this without putting me.combobox=null in the On Click event of the command button? I have quite a few command buttons on that form and don't want to have to put the code in all of them if I don't have to.
I've tried putting me.combobox=null in just about every event the main form has but nothing works. Is there a way to clear this without putting me.combobox=null in the On Click event of the command button? I have quite a few command buttons on that form and don't want to have to put the code in of them if I don't have to.
and a subform
I use the subform to order some mats to get the job done and I want the production_date on the Command Main form to be the latest date from the subform field Reception_Date to be my production date.
So I did a button on the main form(Command) that does this.BUT!
I want to enter some code in the On change Reception date from the subform to call my button code. and I can't do it.
I also created a Clear Entry command button that works. However if I leave the report open in preview mode and go back to the form tab, hit the Clear Entry button, then enter new parameters, the report data doesn't change from the previous entry.
1. Will the end user have to close the report manually each time before entering new parameters?
2. If not, where is the Close Report command button? I could only find Close Form.
3. What's the code to create a command button to refresh the report?
4. Finally, can everything (preview report, clear entry, refresh data) be done using just 1 command button? Can't I add the code I need behind one command?