Hi...I posted a question yesterday but I think I posted in the wrong forum which is probably why I didn't get a response. I am really desperate for help as this problem is preventing my database from working. Here it is:
Main form name= "Invoice"
Sub-Form= "Invoice Details"
Query Name= "Job Select"
In the "Invoice" main form there is a combo box "Bill To" from which I would select the client to bill. Once this selection is made, the query "Job Select" lists the jobs to which that client is attached in the field name "Job Number" on the sub-form.
This is only working on the first record. When I go to the next, previous or a new record, the "Job Number" in the sub-form re-lists the information for the first Invoice created and does not requery.
I am an absolute novice when it comes to code so I really really need some help here.
I was searching this and other forums and found someone with a similar problem who was successful using the following code
Forms![MainFormName]![subFormName].Form![controlname].Requery
which in my case I put (on the After Update event on 'Bill To' in the main form)
Forms![Invoice]![Invoice Details].Form![Job Number].Requery
but still no luck. If the code doesn't reference the query name how can it work? Did I leave something out or type it incorrectly?
I want my database to start to function and my head is hurting trying to figure this problem out....PLEASE SOMEONE HELP ME
Main form name= "Invoice"
Sub-Form= "Invoice Details"
Query Name= "Job Select"
In the "Invoice" main form there is a combo box "Bill To" from which I would select the client to bill. Once this selection is made, the query "Job Select" lists the jobs to which that client is attached in the field name "Job Number" on the sub-form.
This is only working on the first record. When I go to the next, previous or a new record, the "Job Number" in the sub-form re-lists the information for the first Invoice created and does not requery.
I am an absolute novice when it comes to code so I really really need some help here.
I was searching this and other forums and found someone with a similar problem who was successful using the following code
Forms![MainFormName]![subFormName].Form![controlname].Requery
which in my case I put (on the After Update event on 'Bill To' in the main form)
Forms![Invoice]![Invoice Details].Form![Job Number].Requery
but still no luck. If the code doesn't reference the query name how can it work? Did I leave something out or type it incorrectly?
I want my database to start to function and my head is hurting trying to figure this problem out....PLEASE SOMEONE HELP ME
