On Jan 24, 12:24 am, "AFKAFB" <chris.by...@cb a.com.auwrote:
Hi
I've a database where i want a form to open when the db is opened.
The code i've written does not call activate the form when the db is
opened
Option Compare Database
Public open_db()
DoCmd.OpenForm (Form_Frm_Issue s_Log,acnormal)
End Sub
The way I do this is with a macro called AutoExec. In the AutoExec
macro select OpenForm for the action and put the name of the form to
open in the Form Name box. An AutoExec macro, which runs automatically
if present when Access is opened, is the only macro I ever use
(pre-2007). I almost always use one Action line -- either OpenForm or
RunCode. Some people like to use the Startup options instead to
specify an initial form to open. I usually put quotes around the form
name when using DoCmd.OpenForm so I'm not sure if your syntax will work
or not. For example, I use:
DoCmd.OpenForm "frmQuotes" , , , , , , strQuoteID
Post back if you have any questions.
James A. Fortune
CD********@Fort uneJames.com