S
SAC
I have two form's I'm trying to sync. One datasheet and one single.
Private Sub Form_Current()
[Forms]![frmLookup]![frmOrderStatusDatesSF].Requery
[Forms]![frmLookup]![frmOrderStatusDatesSF].Form.Repaint
End Sub
frmLookup is a main form with no datasource. Combo boxes and buttons on it
are used for searching.
the current form is the datasheet one.
[Forms]![frmLookup]![frmOrderStatusDatesSF] is the single record form and
it's data source is a query with criteria pointing to the datasheet form so
that when the current record on the datasheet form changes, the detail in
the songle form changes.
Thought I could just requery and refresh the single form but I get an error.
The requery does not give an error, but the refresh does. It says:
"You entered and expression that has an invalid reference to the property
Form/Report."
Any ideas on how to fix this?
Thanks.
Private Sub Form_Current()
[Forms]![frmLookup]![frmOrderStatusDatesSF].Requery
[Forms]![frmLookup]![frmOrderStatusDatesSF].Form.Repaint
End Sub
frmLookup is a main form with no datasource. Combo boxes and buttons on it
are used for searching.
the current form is the datasheet one.
[Forms]![frmLookup]![frmOrderStatusDatesSF] is the single record form and
it's data source is a query with criteria pointing to the datasheet form so
that when the current record on the datasheet form changes, the detail in
the songle form changes.
Thought I could just requery and refresh the single form but I get an error.
The requery does not give an error, but the refresh does. It says:
"You entered and expression that has an invalid reference to the property
Form/Report."
Any ideas on how to fix this?
Thanks.