CraigDolphin
GrumpyOldMan in Training
- Local time
- Yesterday, 23:50
- Joined
- Dec 21, 2005
- Messages
- 1,578
I've searched but cannot seem to find the right terms to find what I'm looking for.
Here's my situation. I've been asked to develop a db for a salmon hatchery. As part of this we've developed some field forms to make it as easy as possible for the hatchery staff to use at various 'stations' along the hatchery process. They want the db forms to 'match' the field forms.
To accomplish this, I've used an unbound main form with a date control that acts as a parameter for a fairly complex query that draws information from several tables using Dlookups etc in some fields. This query is the source for a continuous subform located within the unbound main form. The user selects a date in the main form and the subform is requeried to show the data associated with that date.
The query appears to work well and I've used vba and sql to make appropriate additions/changes/deletions to records in various tables depending on what the user does on the form. All this seems to work as intended.
My problem is that whenever the user selects a date with corresponding data the form seems to 'load' the subform data several times before 'finalizing' and showing the results. I've checked the on_current event (and other portions of the mainform/subform's code modules) looking for a circular 'requery' situation but was not able to find one. There are requery references in on_click events of several controls on the subform but these should not be triggered by just loading the form should they?
I'd appreciate any suggestions. The zipped file is too large to attach or I would do so.
Here's my situation. I've been asked to develop a db for a salmon hatchery. As part of this we've developed some field forms to make it as easy as possible for the hatchery staff to use at various 'stations' along the hatchery process. They want the db forms to 'match' the field forms.
To accomplish this, I've used an unbound main form with a date control that acts as a parameter for a fairly complex query that draws information from several tables using Dlookups etc in some fields. This query is the source for a continuous subform located within the unbound main form. The user selects a date in the main form and the subform is requeried to show the data associated with that date.
The query appears to work well and I've used vba and sql to make appropriate additions/changes/deletions to records in various tables depending on what the user does on the form. All this seems to work as intended.
My problem is that whenever the user selects a date with corresponding data the form seems to 'load' the subform data several times before 'finalizing' and showing the results. I've checked the on_current event (and other portions of the mainform/subform's code modules) looking for a circular 'requery' situation but was not able to find one. There are requery references in on_click events of several controls on the subform but these should not be triggered by just loading the form should they?
I'd appreciate any suggestions. The zipped file is too large to attach or I would do so.