Does anyone know of any circumstances that would inhibit the Openform method of Docmd? I made a simple procedure to get values from a hidden preferences form. On calling the procedure, the first thing it does is check to see if the form is running. If the form is not found the line: Docmd.Openform strfrmName, , , , achidden returns an error "you can't do that at this time" or something to that effect (I don't have the PC Handy to get the exact verbage). The help button comes up blank. On debug that line is highlighted, the variable shows proper value for the name of the form. The error message specifically says that it can't do the operation at this time, as if maybe it'll work later I guess.
The procedure is run on the Open event of another form to create the query def for the data source of that form. If the form is already opened, it has no trouble. Thanks for any suggestions at all. Dean ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/q7folB/TM --------------------------------------------------------------------~-> Please zip all files prior to uploading to Files section. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AccessDevelopers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/