Hi,
I need to extend the DoCmd.openForm statement so that I can also pass the user level and decide whether to allow the form to open.
I have written a sub which builds up a string containing the arguments that the DoCmd.openForm takes. (for example the string might end up being ‘fContact’, , , ‘[ContactID]=2’)
When I try to pass this string to the DoCmd.openForm statement, I get an error.
My statement would be DoCmd.openForm (strArgs)
Any ideas?
I need to extend the DoCmd.openForm statement so that I can also pass the user level and decide whether to allow the form to open.
I have written a sub which builds up a string containing the arguments that the DoCmd.openForm takes. (for example the string might end up being ‘fContact’, , , ‘[ContactID]=2’)
When I try to pass this string to the DoCmd.openForm statement, I get an error.
My statement would be DoCmd.openForm (strArgs)
Any ideas?