help open form invisible

G

Guest

hi every one
any one can help me with this code so that it opens the form invisibe"
invoice register 2005"

Private Sub LTRNO_Exit(Cancel As Integer)
strDocName = "invoice register 2005"
strLinkCriteria = "[LTR NO] = FORMS![Expense Reports].[LTRNO]"
DoCmd.OpenForm strDocName, , , strLinkCriteria
End Sub

thank you
 
A

Allen Browne

Use the WindowMode argument:

DoCmd.OpenForm strDocName, WhereCondition:=strLinkCriteria,
WindowMode:=acHidden
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top