Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

invisable form

Status
Not open for further replies.

chaosguy

Programmer
Joined
Nov 5, 2005
Messages
45
Location
VC
hey I wanna like make a form invisable so that i can pull a value from one of it's field for a report using a textbox in the report. The form would be like open, or u can call values from the form, but I don't want the user to see the form. so is there anyway I can make a form open everytime a report is opened and close when it gets closed, but it should run in the background or invisible :D. can anyone help?

it would be appriciated.

Chaosguy - To die would be an awefully big adventure.
 
This:
Code:
Private Sub Report_Open(Cancel As Integer)
DoCmd.OpenForm "Form1", , , , acFormReadOnly, acHidden
End Sub
Would open a form called Form1 as read only and hidden when a report opens.
 
How are ya chaosguy . . .

Likewise, in the reports [blue]Close[/blue] event:
Code:
[blue]   docmd.Close acform, "FormName"[/blue]

Calvin.gif
See Ya! . . . . . .
 
okay i'll try these and see what happens. thanks

Chaosguy - To die would be an awefully big adventure.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top