help open form invisible

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
Use the WindowMode argument:

DoCmd.OpenForm strDocName, WhereCondition:=strLinkCriteria,
WindowMode:=acHidden
 
In the Load event of your invoice register 2005 form, enter this:
Me.Visible = False
 

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

Back
Top