D
dustinw101 via AccessMonster.com
I have a form that opens to a selected record based on a choice that the user
selects from a list box. The code workes fine with the filter as long as the
opening arguments are set to open the form as a Dialog. If I get rid of this
(which I can't do because I need to put code in the On Activate and On
Deactivate events of the form) the form won't open to the filtered record, it
opens to the first record in the table.
Sample:
DoCmd.OpenForm "frmLeadTracker_OpportunityEntry", acNormal, , sWhere, ,
acDialog (works and filters)
DoCmd.OpenForm "frmLeadTracker_OpportunityEntry", acNormal, , sWhere (opens
form to the first record in the table, ignores the filter)
Any suggestions with be helpful.
selects from a list box. The code workes fine with the filter as long as the
opening arguments are set to open the form as a Dialog. If I get rid of this
(which I can't do because I need to put code in the On Activate and On
Deactivate events of the form) the form won't open to the filtered record, it
opens to the first record in the table.
Sample:
DoCmd.OpenForm "frmLeadTracker_OpportunityEntry", acNormal, , sWhere, ,
acDialog (works and filters)
DoCmd.OpenForm "frmLeadTracker_OpportunityEntry", acNormal, , sWhere (opens
form to the first record in the table, ignores the filter)
Any suggestions with be helpful.