![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a continuous form (Takings) based on dates and I want to synchronise a second form (TakingsWages) based on a crosstab query pulling information from the date in the Takings form. I can’t use subforms because of space problems, and I can’t use a tabbed form, as both forms need to be seen together. The continuous form shows takings on a particular day, and the CrossTab form shows staff on duty that day with their wages. Main form synchronising field is Takings!TakingsDate and the CrossTab form synchronising field is DatePaid I have set a parameter in the CrossTab Query and this runs OK The CrossTab form in design view shows an error condition on all the fields, (this control has an invalid ControlSource) but works OK in spite of that. The OnCurrent Event of the Takings form has Private Sub Form_Current() Dim Frm As Form Set Frm = Forms!TakingsWages Frm.Requery End Sub Trouble is that the wages form only shows the correct record if you close the TakingsWages form and re-open it with the appropriate record selected in the Takings form. The Requery does nothing Any ideas Phil |
#3
| |||
| |||
|
|
On 02/02/2012 18:12:48, "Phil" wrote: I have a continuous form (Takings) based on dates and I want to synchronise a second form (TakingsWages) based on a crosstab query pulling information from the date in the Takings form. I can't use subforms because of space problems, and I can't use a tabbed form, as both forms need to be seen together. The continuous form shows takings on a particular day, and the CrossTab form shows staff on duty that day with their wages. Main form synchronising field is Takings!TakingsDate and the CrossTab form synchronising field is DatePaid I have set a parameter in the CrossTab Query and this runs OK The CrossTab form in design view shows an error condition on all the fields, (this control has an invalid ControlSource) but works OK in spite of that. The OnCurrent Event of the Takings form has Private Sub Form_Current() Dim Frm As Form Set Frm = Forms!TakingsWages Frm.Requery End Sub Trouble is that the wages form only shows the correct record if you close the TakingsWages form and re-open it with the appropriate record selected in the Takings form. The Requery does nothing Any ideas Phil Not to worry - problem sorted |
#4
| |||
| |||
|
|
How'd you 'sort it'? Someone else might benefit from your approach. |
![]() |
| Thread Tools | |
| Display Modes | |
| |