Forum Discussion
MHaddon
Mar 09, 2026Occasional Reader
Should be easy...... Open a form to a specific record
I have a form with rows showing individual audit for staff members. Each audit would be individualized by an Autonumber ID field. I want the user to be able to click on the ID field, have it close t...
George_Hepworth
Mar 09, 2026Silver Contributor
It can be helpful to incorporate fully qualified parameters in cases like this to avoid the problem of putting parameters in the wrong position.
Consider, for example:
DoCmd.OpenForm formName:="frmYourFormNameGoesHere", view:=acNormal, FilterName:="SavedFilterNameGoesHere", WhereCondition:="ID= " & LngValue, datamode:=acFormEdit, WindowMode:=acDialog, OpenArgs:=lngAnotherValueID