Hi Everyone,
I have a data capture system for a factory floor which is used to track "Make to Order" jobs and "Make to Stock Jobs". The interface is made up of a main form called "frmMainInput1" and a subform called "subFormProcesses". "subFormProcesses" is unbound until the user enters in the job number on the main form, if the number is a "Make to Order" job then the subform for that type of job is displayed and likewise for the "Make to Stock" type of job. The subform for both types of job basically displays when a job was started or stopped on a certain machine.
The problem I have is when the user clicks on a button on the main form such as "Stop Job" another form is opened asking for confirmation. If the user clicks Yes the information is added to the correct table properly but I can't get the subform to refresh and show the new information.
It will work once or twice when I'm testing it but then out on the factory floor is will not refresh unless the user clicks somewhere on the main form, then the subform again. I was using the code:
Forms!frmMainInput1.Form!subFormProcesses.Requery
after the button is clicked but it doesn't seem to work.
The user then can't see that the information has been added and then tries to add it again which causes all sorts of problems. If anyone could shed some light on this I would really appreciate it.
Many thanks
GPM
I have a data capture system for a factory floor which is used to track "Make to Order" jobs and "Make to Stock Jobs". The interface is made up of a main form called "frmMainInput1" and a subform called "subFormProcesses". "subFormProcesses" is unbound until the user enters in the job number on the main form, if the number is a "Make to Order" job then the subform for that type of job is displayed and likewise for the "Make to Stock" type of job. The subform for both types of job basically displays when a job was started or stopped on a certain machine.
The problem I have is when the user clicks on a button on the main form such as "Stop Job" another form is opened asking for confirmation. If the user clicks Yes the information is added to the correct table properly but I can't get the subform to refresh and show the new information.
It will work once or twice when I'm testing it but then out on the factory floor is will not refresh unless the user clicks somewhere on the main form, then the subform again. I was using the code:
Forms!frmMainInput1.Form!subFormProcesses.Requery
after the button is clicked but it doesn't seem to work.
The user then can't see that the information has been added and then tries to add it again which causes all sorts of problems. If anyone could shed some light on this I would really appreciate it.
Many thanks
GPM