A
Andrew Backer
I am curious if there is a way to fix the serverfilter property? If a
form gets saved with it set, it doesn't appear that you can set it in
code afterwards.
I would like to do this :
DoCmd.OpenForm "...",,,"Id=7"
And have it actually filter to id # 7 no matter what is set in the
field. Right now, if there is "id=5" in the property, the argument to
OpenForm doesn't actually overwrite the property.
What is the best way to work around this bug? I have fallen back on
putting a fake sql statement (where id = 0) in as the recorddsource,
and then opening the form and setting the sql from the openMyForm()
function. It causes unneeded sql to be issued, but I can't figure out
how to stop it.
How do y'all do this? I did notice (to my surprise) that the subform's
'open' property is called before the parent forms.
Thanks,
Andrew Backer
form gets saved with it set, it doesn't appear that you can set it in
code afterwards.
I would like to do this :
DoCmd.OpenForm "...",,,"Id=7"
And have it actually filter to id # 7 no matter what is set in the
field. Right now, if there is "id=5" in the property, the argument to
OpenForm doesn't actually overwrite the property.
What is the best way to work around this bug? I have fallen back on
putting a fake sql statement (where id = 0) in as the recorddsource,
and then opening the form and setting the sql from the openMyForm()
function. It causes unneeded sql to be issued, but I can't figure out
how to stop it.
How do y'all do this? I did notice (to my surprise) that the subform's
'open' property is called before the parent forms.
Thanks,
Andrew Backer